LoopRotate: When reconstructing loop simplify form don't split edges from indirectbrs.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Feb 2015 20:49:25 +0000 (20:49 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Feb 2015 20:49:25 +0000 (20:49 +0000)
commit911d5b3ace39c8351042bdc211e9ec59f5c08b7f
treeb4150655dde79fa944f5107f066ddc3e75b0ff0a
parenta5c57ccf2da8fed28a96f12c3227577c580ea0ad
LoopRotate: When reconstructing loop simplify form don't split edges from indirectbrs.

Yet another chapter in the endless story. While this looks like we leave
the loop in a non-canonical state this replicates the logic in
LoopSimplify so it doesn't diverge from the canonical form in any way.

PR21968

llvm-svn: 230058
llvm/lib/Transforms/Scalar/LoopRotation.cpp
llvm/test/Transforms/LoopRotate/crash.ll