Reapply "[SLP] Initialize VectorizedValue when gathering"
authorMatthew Simpson <mssimpso@codeaurora.org>
Sat, 20 Aug 2016 14:49:02 +0000 (14:49 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Sat, 20 Aug 2016 14:49:02 +0000 (14:49 +0000)
commit235e479984b97758b7419f995a3f035c230fae9d
tree60931973ec5c03111bdd0d1ebfca53640268f843
parent2429656aa906e2e917569067e5d518427e595956
Reapply "[SLP] Initialize VectorizedValue when gathering"

The test case included in r279125 exposed existing undefined behavior in the
SLP vectorizer that it did not introduce. This patch reapplies the original
patch, but modifies the test case to avoid hitting the undefined behavior. This
allows us to close PR28330 while keeping the UBSan bot happy. The undefined
behavior the original test uncovered will be addressed in a follow-on patch.

Reference: https://llvm.org/bugs/show_bug.cgi?id=28330
llvm-svn: 279370
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/AArch64/gather-root.ll [new file with mode: 0644]