summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PHIElimination.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-08-17 21:00:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-08-17 21:00:37 +0000
commit16bfe5b0f59587aecbd16deedc71183f510ef627 (patch)
tree8a7dd550da9b05ed8d2ffbe2d2e62c64ceaa29b7 /llvm/lib/CodeGen/PHIElimination.h
parent7940e6fb1d2ba7dfbf089b565bf869b734c6a423 (diff)
downloadbcm5719-llvm-16bfe5b0f59587aecbd16deedc71183f510ef627.tar.gz
bcm5719-llvm-16bfe5b0f59587aecbd16deedc71183f510ef627.zip
PHI elimination shouldn't require machineloopinfo since it's used at -O0. Move the requirement to LiveIntervalAnalysis instead. Note this does not change the number of times machineloopinfo is computed.
llvm-svn: 111285
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.h')
-rw-r--r--llvm/lib/CodeGen/PHIElimination.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.h b/llvm/lib/CodeGen/PHIElimination.h
index b054732dace..45a97182e71 100644
--- a/llvm/lib/CodeGen/PHIElimination.h
+++ b/llvm/lib/CodeGen/PHIElimination.h
@@ -24,7 +24,6 @@ namespace llvm {
/// Lower PHI instructions to copies.
class PHIElimination : public MachineFunctionPass {
MachineRegisterInfo *MRI; // Machine register information
- MachineLoopInfo *MLI;
public:
static char ID; // Pass identification, replacement for typeid
@@ -52,7 +51,7 @@ namespace llvm {
/// Split critical edges where necessary for good coalescer performance.
bool SplitPHIEdges(MachineFunction &MF, MachineBasicBlock &MBB,
- LiveVariables &LV);
+ LiveVariables &LV, MachineLoopInfo *MLI);
/// SplitCriticalEdge - Split a critical edge from A to B by
/// inserting a new MBB. Update branches in A and PHI instructions
OpenPOWER on IntegriCloud