Fix inserting instructions before last in bundle.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 26 Aug 2013 23:08:37 +0000 (23:08 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 26 Aug 2013 23:08:37 +0000 (23:08 +0000)
commit4b272493b7deaa139484b16ee45ae87a46ceef57
tree8f92c1551d44bd67570f2e5789e880c30c9c9d1b
parent6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8
Fix inserting instructions before last in bundle.

The builder inserts from before the insert point,
not after, so this would insert before the last
instruction in the bundle instead of after it.

I'm not sure if this can actually be a problem
with any of the current insertions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189285 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/debug_info.ll