[PATCH] D37232: [InstCombine] Teach select01 helper of foldSelectIntoOp to handle vector splats

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 14:20:04 PDT 2017


craig.topper created this revision.

We were handling some vectors in foldSelectIntoOp, but not if the operand of the bin op was any kind of vector constant. This patch fixes it to treat vector splats the same as scalars.


https://reviews.llvm.org/D37232

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select.ll
  test/Transforms/LoopVectorize/phi-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37232.112968.patch
Type: text/x-patch
Size: 4513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170828/b0a3cf6d/attachment.bin>


More information about the llvm-commits mailing list