Skip to content

Commit

Permalink
Comment on what we are checking here.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jun 28, 2019
1 parent da9cfac commit c5a4bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Futhark/Optimise/InPlaceLowering/LowerIntoStm.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ lowerUpdateIntoLoop scope updates pat ctx val form body = do
-- We also check that the merge parameters we work with have
-- loop-invariant shapes.

-- Safety condition (8).
forM_ (zip val $ bodyAliases body) $ \((p, _), als) ->
guard $ not $ paramName p `S.member` als

Expand Down

0 comments on commit c5a4bee

Please sign in to comment.