[LV] Remove wrong assumption about LCSSA
authorMichael Kuperstein <mkuper@google.com>
Tue, 12 Jul 2016 21:24:06 +0000 (21:24 +0000)
committerMichael Kuperstein <mkuper@google.com>
Tue, 12 Jul 2016 21:24:06 +0000 (21:24 +0000)
commita99c46cc73a70b57972c07562072ec5aeb6d8f4c
treef5baa8c5bc71fac921cf6f07da339caa399cea56
parent1e44b5d3abc7b8180d2479c39faadf507693401d
[LV] Remove wrong assumption about LCSSA

The LCSSA pass itself will not generate several redundant PHI nodes in a single
exit block. However, such redundant PHI nodes don't violate LCSSA form, and may
be introduced by passes that preserve LCSSA, and/or preserved by the LCSSA pass
itself. So, assuming a single PHI node per exit block is not safe.

llvm-svn: 275217
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/iv_outside_user.ll