This change teaches isImpliedCondition to prove things like
(A | 15) < L ==> (A | 14) < L
if the low 4 bits of A are known to be zero.
Depends on D14391
Differential D14392
[ValueTracking] Teach isImpliedCondition a new bitwise trick sanjoy on Nov 5 2015, 1:27 PM. Authored by
Details This change teaches isImpliedCondition to prove things like (A | 15) < L ==> (A | 14) < L if the low 4 bits of A are known to be zero. Depends on D14391
Diff Detail Event Timeline
Comment Actions LGTM w/fix for issues in comment and test which would have caught same.
|
A cleaner way of framing this content is simply to state that X | C where X low bits are zero is equivalent to X+C.