The tests here are have operands commuted to provide more coverage. I also commuted one of the instructions in the scalar tests so the 4 tests cover the 4 commuted variations
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
| Paths 
 |  Differential  D33599  
[InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2) handling in order to support splat vectors. ClosedPublic Authored by craig.topper on May 26 2017, 10:58 AM. 
Details Summary The tests here are have operands commuted to provide more coverage. I also commuted one of the instructions in the scalar tests so the 4 tests cover the 4 commuted variations 
Diff Detail 
 Event Timelinecraig.topper added a child revision: D33585: [InstSimplify] Use commutable matchers to shorten some code. This revision is now accepted and ready to land.May 26 2017, 11:10 AM Closed by commit rL304021: [InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V &… (authored by ctopper).  ·  Explain WhyMay 26 2017, 12:04 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 100442 llvm/trunk/lib/Analysis/InstructionSimplify.cpp
 llvm/trunk/test/Transforms/InstSimplify/or.ll
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||