Currently m_Not only works the canonical xor X, -1 form that InstCombine produces. InstSimplify can't rely on this canonicalization.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D33331
[InstSimplify] Make m_Not work for xor -1, X ClosedPublic Authored by craig.topper on May 18 2017, 11:51 AM.
Details Summary Currently m_Not only works the canonical xor X, -1 form that InstCombine produces. InstSimplify can't rely on this canonicalization.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 18 2017, 1:02 PM Closed by commit rL303379: [InstSimplify] Make m_Not work for xor -1, X (authored by ctopper). · Explain WhyMay 18 2017, 1:40 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 99474 include/llvm/IR/PatternMatch.h
test/Transforms/InstSimplify/AndOrXor.ll
|