diff options
| author | Lang Hames <lhames@gmail.com> | 2009-08-10 23:43:28 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2009-08-10 23:43:28 +0000 |
| commit | 3b90d973b0aae18c6780fb015195b87fbf0bd7f1 (patch) | |
| tree | d9e46aba97db71559396cac4b535ed2f7b96c321 /llvm/lib/CodeGen/StrongPHIElimination.cpp | |
| parent | 9d26c85bdc08c21b47b5e155e7a6d0cdf7cde70b (diff) | |
| download | bcm5719-llvm-3b90d973b0aae18c6780fb015195b87fbf0bd7f1.tar.gz bcm5719-llvm-3b90d973b0aae18c6780fb015195b87fbf0bd7f1.zip | |
Modified VNInfo. The "copy" member is now a union which holds the copy for a register interval, or the defining register for a stack interval. Access is via getCopy/setCopy and getReg/setReg.
llvm-svn: 78620
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index a352e366de4..568fc7fa6d7 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -790,7 +790,7 @@ void StrongPHIElimination::ScheduleCopies(MachineBasicBlock* MBB, true); LiveRange R = LI.addLiveRangeToEndOfBlock(I->first, I->second); - R.valno->copy = I->second; + R.valno->setCopy(I->second); R.valno->def = LiveIntervals::getDefIndex(LI.getInstructionIndex(I->second)); } @@ -974,7 +974,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) { LiveRange R = LI.addLiveRangeToEndOfBlock(I->first, --SI->second->getFirstTerminator()); - R.valno->copy = --SI->second->getFirstTerminator(); + R.valno->setCopy(--SI->second->getFirstTerminator()); R.valno->def = LiveIntervals::getDefIndex(instrIdx); DOUT << "Renaming failed: " << SI->first << " -> " |

