PR18060 - When we RAUW values with ExtractElement instructions in some cases
authorNadav Rotem <nrotem@apple.com>
Tue, 26 Nov 2013 17:29:19 +0000 (17:29 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 26 Nov 2013 17:29:19 +0000 (17:29 +0000)
commitbba8da2ba0e4e88ba8b8125c6754d653c8ef1ef7
treecd3158ea79eef96bfcd9c75c9e58671a98313bb4
parent15f7d261b5443e3b2259480ccd7bbcd1de5bfc54
PR18060 - When we RAUW values with ExtractElement instructions in some cases
we generate PHI nodes with multiple entries from the same basic block but
with different values. Enabling CSE on ExtractElement instructions make sure
that all of the RAUWed instructions are the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195773 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/pr18060.ll [new file with mode: 0644]