This is an archive of the discontinued LLVM Phabricator instance.

[LoopInterchange] Skip zext instructions when looking for induction var.
ClosedPublic

Authored by fhahn on Jun 30 2017, 6:31 AM.

Details

Summary

SimplifyIndVar may introduce zext instructions to widen arguments of the
loop exit check. They should not prevent us from splitting the loop at
the induction variable, but maybe the check should be more conservative,
e.g. making sure it only extends arguments used by a comparison?

Diff Detail

Event Timeline

fhahn created this revision.Jun 30 2017, 6:31 AM
mcrosier accepted this revision.Aug 24 2017, 7:40 AM

Seems reasonable to me assuming the usual bit of testing has been done.

This revision is now accepted and ready to land.Aug 24 2017, 7:40 AM
fhahn updated this revision to Diff 112705.Aug 25 2017, 9:11 AM

rebased

fhahn closed this revision.Aug 25 2017, 9:53 AM