[InstCombine] insert a new shuffle in a safe place (PR25999)
authorSanjay Patel <spatel@rotateright.com>
Fri, 8 Jan 2016 01:39:16 +0000 (01:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 8 Jan 2016 01:39:16 +0000 (01:39 +0000)
commit810605370d53b5ded5243df2ca8bcdbb3ed04047
tree5e3397bdb0319aa968d6b03abafec4ffb391beb7
parentad86ed61f2859ed061c5629464849bc7aed30709
[InstCombine] insert a new shuffle in a safe place (PR25999)

Limit this transform to a basic block and guard against PHIs.
Hopefully, this fixes the remaining failures in PR25999:
https://llvm.org/bugs/show_bug.cgi?id=25999

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