Skip to content

Commit

Permalink
We do not need this function.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 9, 2023
1 parent 05e4941 commit fd7ad6c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/Futhark/IR/Mem/IxFun.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module Futhark.IR.Mem.IxFun
substituteInLMAD,
existentialize,
closeEnough,
permuteInv,
disjoint,
disjoint2,
disjoint3,
Expand Down
1 change: 0 additions & 1 deletion src/Futhark/IR/Mem/LMAD.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module Futhark.IR.Mem.LMAD
shape,
rank,
substituteInLMAD,
permuteInv,
disjoint,
disjoint2,
disjoint3,
Expand Down
3 changes: 1 addition & 2 deletions src/Futhark/Optimise/ArrayShortCircuiting/TopdownAnalysis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ getInvAliasFromExp (BasicOp (SubExp (Var _))) = Just id
getInvAliasFromExp (BasicOp (Opaque _ (Var _))) = Just id
getInvAliasFromExp (BasicOp Update {}) = Just id
getInvAliasFromExp (BasicOp (Rearrange perm _)) =
let perm' = IxFun.permuteInv perm [0 .. length perm - 1]
in Just (`IxFun.permute` perm')
Just (`IxFun.permute` rearrangeInverse perm)
getInvAliasFromExp _ = Nothing

class TopDownHelper inner where
Expand Down

0 comments on commit fd7ad6c

Please sign in to comment.