OSDN Git Service

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)
commitfcc016a4ea2bae6256eaf175712b20b987fa18de
treec8842a7268736b1d5e39b0e91315815381336c8a
parent4848b39daa5443a48b79921f1f99e08d87491ed3
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

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