Don't split critical edges during the AddUsersIfInteresting phase
authorDan Gohman <gohman@apple.com>
Sat, 2 May 2009 05:36:01 +0000 (05:36 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 2 May 2009 05:36:01 +0000 (05:36 +0000)
commit1dcad96dc68c8a4565f10759bcabc634f61243e0
tree8d80bf5ca35a9d41c50146abb32e994ad9072477
parentdd47f88cfe1782ddcc5df61f0702de0887b1871f
Don't split critical edges during the AddUsersIfInteresting phase
of LSR. This makes the AddUsersIfInteresting phase of LSR a pure
analysis instead of a phase that potentially does CFG modifications.

The conditions where this code would actually perform a split are
rare, and in the cases where it actually would do a split the split
is usually undone by CodeGenPrepare, and in cases where splits
actually survive into codegen, they appear to hurt more often than
they help.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70625 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp