Move the decision logic whether it's a good idea to split a critical edge to clients...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 17 Aug 2010 17:43:50 +0000 (17:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 17 Aug 2010 17:43:50 +0000 (17:43 +0000)
commite008384508342a2dec110eafaa87d93614976990
tree9b55d84fea5b3777135ce41c11bc676ac50e6a43
parentfc8042a1225790b3a6de434546623babea08496f
Move the decision logic whether it's a good idea to split a critical edge to clients. Also fixed an erroneous check. An edge is only a back edge when the from and to blocks are in the same loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111256 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/PHIElimination.cpp
lib/CodeGen/PHIElimination.h