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)
commit37c2d65c5a438d8c8218b9c36e7b24e710d29d09
treed611b5c204bdd2eca5d9d1c539b52d6c35728847
parent5e524897eda279971fa2e45003155f957975c922
Insert the reduction start value into the first bypass block to preserve domination.

Fixes PR15344.

llvm-svn: 176701
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/X86/reduction-crash.ll [new file with mode: 0644]