[InstCombine] insert a new shuffle before its uses (PR26015)
authorSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2016 19:09:47 +0000 (19:09 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2016 19:09:47 +0000 (19:09 +0000)
commit7a3b692c47f6c009313678711edce335c8473da5
tree5f9736298749a163ad4db09404106ab5401d477c
parentdb61103ea811b2fc0443e6438da3067a19ba1793
[InstCombine] insert a new shuffle before its uses (PR26015)

Although this solves the test case in PR26015:
https://llvm.org/bugs/show_bug.cgi?id=26015

And may solve PR25999:
https://llvm.org/bugs/show_bug.cgi?id=25999

...I suspect this is not the best solution. I think we want to insert the new shuffle
just ahead of the earliest ExtractElementInst that we're replacing, but I don't know
how that should be implemented.

Differential Revision: http://reviews.llvm.org/D15878

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