[InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2)...
authorCraig Topper <craig.topper@gmail.com>
Fri, 26 May 2017 19:03:53 +0000 (19:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 26 May 2017 19:03:53 +0000 (19:03 +0000)
commit1da22c3244273471bdc14247de36e55cde40b08c
tree66c2c225bfe23a73b97fd9b2a545ef084f06a09f
parent07963bd1d194af32a3065b170084da94ae8ec090
[InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2) handling in order to support splat vectors.

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

Differential Revision: https://reviews.llvm.org/D33599

llvm-svn: 304021
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/or.ll