]> granicus.if.org Git - llvm/commit
[InstCombine] limit extracting shuffle transform based on uses
authorSanjay Patel <spatel@rotateright.com>
Tue, 5 Feb 2019 22:58:45 +0000 (22:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 5 Feb 2019 22:58:45 +0000 (22:58 +0000)
commit0811b200e61bd3e9723cf38fa7833b5a17bcedc0
tree1d27c94c24408105faaf165ab429d0274e3769f7
parent7ea159f7bad4f188c2e0531a7f2dbcd44fe570b6
[InstCombine] limit extracting shuffle transform based on uses

As discussed in D53037, this can lead to worse codegen, and we
don't generally expect the backend to be able to optimize
arbitrary shuffles. If there's only one use of the 1st shuffle,
that means it's getting removed, so that should always be
safe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353235 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/InstCombine/vec_shuffle.ll