Skip to content

Commit 4041a4e

Browse files
committed
ES: added extra comment to CopyPropagation
1 parent 4950a26 commit 4041a4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grin/src/Transformations/ExtendedSyntax/Optimising/CopyPropagation.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ copyPropagation = flip evalState mempty . hyloM rmBlocks builder where
4444
builder :: Exp -> State Env (ExpF Exp)
4545
builder exp = do
4646
(origVals, aliases) <- get
47+
-- this substitutes all the variables on this level with their original aliases
4748
let exp' = substVarRefExp aliases $ exp
4849

4950
case exp' of

0 commit comments

Comments
 (0)