diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 21:00:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 21:00:37 +0000 |
commit | 148341cc9b60d7d88be9c07a2b32b436e0cd301d (patch) | |
tree | 29a5c972e74e8b82bc01aba153ea9649733be807 /lib/CodeGen/PHIElimination.h | |
parent | 6542416560589c9cfa6298d2edc73f3350ccf56a (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PHIElimination.h')
-rw-r--r-- | lib/CodeGen/PHIElimination.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/PHIElimination.h b/lib/CodeGen/PHIElimination.h index b054732dac..45a97182e7 100644 --- a/lib/CodeGen/PHIElimination.h +++ b/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 |