This patch gives the IR ComputeNumSignBits the same functionality as the DAG version (the code is derived from the existing code).
This an extension of the single input shuffle analysis added with D53659.
Paths
| Differential D53987
[ValueTracking] peek through 2-input shuffles in ComputeNumSignBits ClosedPublic Authored by spatel on Nov 1 2018, 10:46 AM.
Details Summary This patch gives the IR ComputeNumSignBits the same functionality as the DAG version (the code is derived from the existing code). This an extension of the single input shuffle analysis added with D53659.
Diff Detail Event Timeline
Comment Actions Patch updated: This revision is now accepted and ready to land.Nov 2 2018, 11:54 AM Closed by commit rL346071: [ValueTracking] peek through 2-input shuffles in ComputeNumSignBits (authored by spatel). · Explain WhyNov 3 2018, 6:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 172408 lib/Analysis/ValueTracking.cpp
test/Transforms/InstCombine/logical-select.ll
unittests/Analysis/ValueTrackingTest.cpp
|
Don't you still have to check if a valid shuffle mask element references an UNDEF operand?
Or is that guaranteed to have already been handled, the mask element set to undef and caught by containsUndefElement() ?