Insert the reduction start value into the first bypass block to preserve domination.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 8 Mar 2013 16:58:37 +0000 (16:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 8 Mar 2013 16:58:37 +0000 (16:58 +0000)
commitf22d9cfa6d145ce26930804cc3ac54340f49c38b
tree273f8b813c1807855f4fa9fdaf035a9ef9339509
parent7893d29c62146baddf43c4d9d42678d246a52fea
Insert the reduction start value into the first bypass block to preserve domination.

Fixes PR15344.

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