This is an archive of the discontinued LLVM Phabricator instance.

[LV] When emitting an overflow check, test the trip count, not the backedge count.
AbandonedPublic

Authored by jmolloy on Aug 24 2015, 9:13 AM.

Details

Summary

We were testing the backedge-taken count with -1, when it's just as simple to test the trip count with zero. Given we need to calculate the trip count anyway, this removes code in the loop vectorizer.

Diff Detail

Repository
rL LLVM

Event Timeline

jmolloy updated this revision to Diff 32968.Aug 24 2015, 9:13 AM
jmolloy retitled this revision from to [LV] When emitting an overflow check, test the trip count, not the backedge count..
jmolloy updated this object.
jmolloy added reviewers: anemet, mzolotukhin.
jmolloy set the repository for this revision to rL LLVM.
jmolloy added a subscriber: llvm-commits.
hfinkel accepted this revision.Aug 27 2015, 8:06 PM
hfinkel added a reviewer: hfinkel.
hfinkel added a subscriber: hfinkel.

LGTM.

This revision is now accepted and ready to land.Aug 27 2015, 8:06 PM
jmolloy abandoned this revision.Aug 30 2015, 2:38 AM

Thanks Hal, however D12107 has made this defunct, so I'm abandoning this revision.