[PATCH] Fold selects when the non-selected elements are undef from shufflevectors

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Tue Apr 29 23:27:36 PDT 2014


Hi bkramer, eli.friedman,

If we have a select whose operands are two shufflevectors and we know the
non-selected elements are undef, replace the instruction with a
shufflevector from the source vectors of the shufflevectors.

Added test cases.

http://reviews.llvm.org/D3561

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3561.8958.patch
Type: text/x-patch
Size: 5424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140430/504b84c1/attachment.bin>


More information about the llvm-commits mailing list