mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference! llvm-svn: 1906
This commit is contained in:
parent
855ed3d941
commit
8553fc5d21
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user