Teach computeKnownBitsFromRangeMetadata to use !range metadata more
aggressively.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D14100
[ValueTracking] Use !range metadata more aggressively in KnownBits ClosedPublic Authored by sanjoy on Oct 26 2015, 6:46 PM.
Details Summary Teach computeKnownBitsFromRangeMetadata to use !range metadata more
Diff Detail Event Timelinesanjoy updated this object. This revision is now accepted and ready to land.Oct 26 2015, 6:59 PM sanjoy retitled this revision from [ValueTracking] Compute sign bit from range metadata to [ValueTracking] Use !range metadata more aggressively in KnownBits.Oct 26 2015, 11:12 PM sanjoy updated this object. sanjoy edited edge metadata. sanjoy added a parent revision: D14107: [SelectionDAG] Don't inspect !range metadata for extended loads.Oct 26 2015, 11:14 PM Closed by commit rL251487: [ValueTracking] Use !range metadata more aggressively in KnownBits (authored by sanjoy). · Explain WhyOct 27 2015, 8:22 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38489 include/llvm/Analysis/ValueTracking.h
lib/Analysis/ValueTracking.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/Analysis/ValueTracking/sign-bit-from-md.ll
|
ret i1 true
I'd be slightly more verbose to filter out unwanted cases such as and i8 true, ....