[PATCH] D33599: [InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2) handling in order to support splat vectors.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 10:58:02 PDT 2017


craig.topper created this revision.

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


https://reviews.llvm.org/D33599

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33599.100432.patch
Type: text/x-patch
Size: 4202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170526/bd651d78/attachment.bin>


More information about the llvm-commits mailing list