summaryrefslogtreecommitdiff
path: root/test/Transforms/LoopUnroll
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2014-05-04 17:10:15 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2014-05-04 17:10:15 +0000
commit28a739b4dcd88fc55adc521d2017a831ca7286c9 (patch)
treea412a6bbc9aa990818e486e43176434bf4cd72cf /test/Transforms/LoopUnroll
parent8a3751f8132e8b0ef8fa35bfcc0f13029595c266 (diff)
downloadllvm-28a739b4dcd88fc55adc521d2017a831ca7286c9.tar.gz
llvm-28a739b4dcd88fc55adc521d2017a831ca7286c9.tar.bz2
llvm-28a739b4dcd88fc55adc521d2017a831ca7286c9.tar.xz
SLPVectorizer: Bring back the insertelement patch (r205965) with fixes
When can't assume a vectorized tree is rooted in an instruction. The IRBuilder could have constant folded it. When we rebuild the build_vector (the series of InsertElement instructions) use the last original InsertElement instruction. The vectorized tree root is guaranteed to be before it. Also, we can't assume that the n-th InsertElement inserts the n-th element into a vector. This reverts r207746 which reverted the revert of the revert of r205018 or so. Fixes the test case in PR19621. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopUnroll')
0 files changed, 0 insertions, 0 deletions