[PATCH] D24279: [InstCombine] canonicalize vector select with constant vector condition to shuffle

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 13:45:46 PDT 2016


spatel created this revision.
spatel added reviewers: efriedma, hfinkel, reames, mkuper, majnemer.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

As discussed on llvm-dev ( http://lists.llvm.org/pipermail/llvm-dev/2016-August/104210.html ): turn a vector select into a shuffle when possible as a canonicalization step. Shuffles may be easier to reason about in conjunction with other shuffles and insert/extract.

https://reviews.llvm.org/D24279

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/blend_x86.ll
  test/Transforms/InstCombine/logical-select.ll
  test/Transforms/InstCombine/select.ll
  test/Transforms/InstCombine/vec_demanded_elts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24279.70464.patch
Type: text/x-patch
Size: 11030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160906/5db2f1ea/attachment.bin>


More information about the llvm-commits mailing list