OSDN Git Service

[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)
commit4e6f8d0728baf31b08aaea7da4148132a6a553f0
tree60f0f763868e6efee141527230c4199e6b4e925c
parent06983057d0a75dd705b4b57c7f82440b08c1e0cb
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304021 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/or.ll