diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-11-18 18:01:35 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-11-18 18:01:35 +0000 |
| commit | 736888f7fae74b4781e134c1777c71a26260a270 (patch) | |
| tree | 0377f5376de68d4458ba12c3c80cf78771fa059d /llvm/lib/CodeGen/PHIElimination.h | |
| parent | 21432d38a09f86f4b13ebc45062ff91087d25061 (diff) | |
| download | bcm5719-llvm-736888f7fae74b4781e134c1777c71a26260a270.tar.gz bcm5719-llvm-736888f7fae74b4781e134c1777c71a26260a270.zip | |
Don't require LiveVariables for PHIElimination. Enable critical edge splitting
when LiveVariables is available.
The -split-phi-edges is now gone, and so is the hack to disable it when using
the local register allocator. The PHIElimination pass no longer has
LiveVariables as a prerequisite - that is what broke the local allocator.
Instead we do critical edge splitting when possible - that is when
LiveVariables is available.
llvm-svn: 89213
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.h')
| -rw-r--r-- | llvm/lib/CodeGen/PHIElimination.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.h b/llvm/lib/CodeGen/PHIElimination.h index 94716eef6c5..f8c9fe72845 100644 --- a/llvm/lib/CodeGen/PHIElimination.h +++ b/llvm/lib/CodeGen/PHIElimination.h @@ -90,7 +90,8 @@ namespace llvm { void analyzePHINodes(const MachineFunction& Fn); /// Split critical edges where necessary for good coalescer performance. - bool SplitPHIEdges(MachineFunction &MF, MachineBasicBlock &MBB); + bool SplitPHIEdges(MachineFunction &MF, MachineBasicBlock &MBB, + LiveVariables &LV); /// isLiveOut - Determine if Reg is live out from MBB, when not /// considering PHI nodes. This means that Reg is either killed by |

