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 | 23a4c8fcb5135622d007b162a5e3fcd44dc2ac0c (patch) | |
tree | a2f42b496604f08c3ec89f15d9c41461d0036925 /lib/CodeGen | |
parent | 89e2da034a02cd33b306b59dbbf607650cca1c4c (diff) | |
download | external_llvm-23a4c8fcb5135622d007b162a5e3fcd44dc2ac0c.zip external_llvm-23a4c8fcb5135622d007b162a5e3fcd44dc2ac0c.tar.gz external_llvm-23a4c8fcb5135622d007b162a5e3fcd44dc2ac0c.tar.bz2 |
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index c78b971..1fbe525 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/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); |