We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4950a26 commit 4041a4eCopy full SHA for 4041a4e
grin/src/Transformations/ExtendedSyntax/Optimising/CopyPropagation.hs
@@ -44,6 +44,7 @@ copyPropagation = flip evalState mempty . hyloM rmBlocks builder where
44
builder :: Exp -> State Env (ExpF Exp)
45
builder exp = do
46
(origVals, aliases) <- get
47
+ -- this substitutes all the variables on this level with their original aliases
48
let exp' = substVarRefExp aliases $ exp
49
50
case exp' of
0 commit comments