This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] De-pessimize isImpliedCondition around unsigned compares
ClosedPublic

Authored by sanjoy on Nov 4 2015, 8:25 PM.

Details

Summary

Currently isImpliedCondition will optimize "I +_nuw C < L ==> I < L"
only if C is positive. This is an unnecessary restriction -- the
implication holds even if C is negative.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 39313.Nov 4 2015, 8:25 PM
sanjoy retitled this revision from to [ValueTracking] De-pessimize isImpliedCondition around unsigned compares.
sanjoy updated this object.
sanjoy added reviewers: reames, majnemer.
sanjoy added a subscriber: llvm-commits.
majnemer accepted this revision.Nov 5 2015, 12:36 PM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 5 2015, 12:36 PM
This revision was automatically updated to reflect the committed changes.