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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D14369
[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"
Diff Detail
Event Timelinesanjoy added a parent revision: D14368: [ValueTracking] Add a framework for encoding implication rules.Nov 5 2015, 12:33 PM This revision is now accepted and ready to land.Nov 5 2015, 12:36 PM sanjoy added a child revision: D14391: [ValueTracking] Add parameters to isImpliedCondition; NFC.Nov 5 2015, 1:26 PM Closed by commit rL252332: [ValueTracking] De-pessimize isImpliedCondition around unsigned compares (authored by sanjoy). · Explain WhyNov 6 2015, 11:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 39566 llvm/trunk/lib/Analysis/ValueTracking.cpp
llvm/trunk/test/Transforms/InstSimplify/implies.ll
|