Skip to content

Commit

Permalink
Ignore certs when removing identity maps.
Browse files Browse the repository at this point in the history
This can strictly speaking cause us to remove bounds checks in some
programs, but this implementation of flattening is going away soon
anyway.
  • Loading branch information
athas committed Jan 23, 2025
1 parent d5fe188 commit 00bf0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Futhark/Pass/ExtractKernels/Distribution.hs
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ removeIdentityMappingGeneral bound pat res =
expandTarget
)
where
isIdentity (patElem, SubExpRes cs (Var v))
| v `notNameIn` bound = Left (patElem, (cs, v))
isIdentity (patElem, SubExpRes _ (Var v))
| v `notNameIn` bound = Left (patElem, (mempty, v))
isIdentity x = Right x

removeIdentityMappingFromNesting ::
Expand Down

0 comments on commit 00bf0a0

Please sign in to comment.