This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Strengthen StrengthenNoWrapFlags (reapply r334428).
ClosedPublic

Authored by timshen on Jun 20 2018, 6:22 PM.

Details

Summary

Comment on Transforms/LoopVersioning/incorrect-phi.ll: With the change
SCEV is able to prove that the loop doesn't wrap-self (due to zext i16
to i64), disabling the entire loop versioning pass. Removed the zext and
just use i64.

Event Timeline

timshen created this revision.Jun 20 2018, 6:22 PM
timshen updated this revision to Diff 152401.Jun 21 2018, 4:27 PM

Update more tests.

sanjoy accepted this revision.Jul 2 2018, 11:42 AM

lgtm

This revision is now accepted and ready to land.Jul 2 2018, 11:42 AM
This revision was automatically updated to reflect the committed changes.