diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:37:19 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:37:19 +0000 |
commit | 8e01c0b70ee4ec0875bb380128a76ab463a90a1f (patch) | |
tree | ae12f937dedf173d6bfcb43c084e1c1534ddaa60 /llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | |
parent | 7446b323a70c6acfb83ba5a50febdcebde218ad5 (diff) | |
download | bcm5719-llvm-8e01c0b70ee4ec0875bb380128a76ab463a90a1f.tar.gz bcm5719-llvm-8e01c0b70ee4ec0875bb380128a76ab463a90a1f.zip |
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference!
llvm-svn: 1906
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index c78b971e796..1fbe5258b2c 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -453,7 +453,7 @@ void PhyRegAlloc::updateMachineCode() unsigned Opcode = MInst->getOpCode(); // do not process Phis - if (TM.getInstrInfo().isPhi(Opcode)) + if (TM.getInstrInfo().isDummyPhiInstr(Opcode)) continue; // Now insert speical instructions (if necessary) for call/return @@ -741,8 +741,8 @@ int PhyRegAlloc::getUsableUniRegAtMI(RegClass *RC, const int RegType, const MachineInstr *MInst, const ValueSet *LVSetBef, - MachineInstr *MIBef, - MachineInstr *MIAft) { + MachineInstr *&MIBef, + MachineInstr *&MIAft) { int RegU = getUnusedUniRegAtMI(RC, MInst, LVSetBef); |