Move PHIElimination's SplitCriticalEdge for MachineBasicBlocks out
authorDan Gohman <gohman@apple.com>
Tue, 22 Jun 2010 17:25:57 +0000 (17:25 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 22 Jun 2010 17:25:57 +0000 (17:25 +0000)
commit853d3fb8d24fab2258e9cd5dce3ec8ff4189eeda
tree5fefc9df2fa37f7a1e449259a14ed900513c854f
parent6ff1c3f36c53d37097d1e66b58cd8d129d690127
Move PHIElimination's SplitCriticalEdge for MachineBasicBlocks out
into a utility routine, teach it how to update MachineLoopInfo, and
make use of it in MachineLICM to split critical edges on demand.

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