The rule that turns a sub to xor if the LHS is 2^n-1 and the remaining bits
are known zero, does not use the demanded bits at all: Move it to the
normal InstCombine code path.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D9417
InstCombine: Move Sub->Xor rule from SimplifyDemanded to InstCombine ClosedPublic Authored by MatzeB on Apr 30 2015, 2:36 PM.
Details Summary The rule that turns a sub to xor if the LHS is 2^n-1 and the remaining bits
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 30 2015, 2:48 PM Closed by commit rL236268: InstCombine: Move Sub->Xor rule from SimplifyDemanded to InstCombine (authored by matze). · Explain WhyApr 30 2015, 3:07 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 24772 lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
|