mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
89e2da034a
commit
23a4c8fcb5
@ -453,7 +453,7 @@ void PhyRegAlloc::updateMachineCode()
|
|||||||
unsigned Opcode = MInst->getOpCode();
|
unsigned Opcode = MInst->getOpCode();
|
||||||
|
|
||||||
// do not process Phis
|
// do not process Phis
|
||||||
if (TM.getInstrInfo().isPhi(Opcode))
|
if (TM.getInstrInfo().isDummyPhiInstr(Opcode))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Now insert speical instructions (if necessary) for call/return
|
// Now insert speical instructions (if necessary) for call/return
|
||||||
@ -741,8 +741,8 @@ int PhyRegAlloc::getUsableUniRegAtMI(RegClass *RC,
|
|||||||
const int RegType,
|
const int RegType,
|
||||||
const MachineInstr *MInst,
|
const MachineInstr *MInst,
|
||||||
const ValueSet *LVSetBef,
|
const ValueSet *LVSetBef,
|
||||||
MachineInstr *MIBef,
|
MachineInstr *&MIBef,
|
||||||
MachineInstr *MIAft) {
|
MachineInstr *&MIAft) {
|
||||||
|
|
||||||
int RegU = getUnusedUniRegAtMI(RC, MInst, LVSetBef);
|
int RegU = getUnusedUniRegAtMI(RC, MInst, LVSetBef);
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ void PhyRegAlloc::updateMachineCode()
|
|||||||
unsigned Opcode = MInst->getOpCode();
|
unsigned Opcode = MInst->getOpCode();
|
||||||
|
|
||||||
// do not process Phis
|
// do not process Phis
|
||||||
if (TM.getInstrInfo().isPhi(Opcode))
|
if (TM.getInstrInfo().isDummyPhiInstr(Opcode))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Now insert speical instructions (if necessary) for call/return
|
// Now insert speical instructions (if necessary) for call/return
|
||||||
@ -741,8 +741,8 @@ int PhyRegAlloc::getUsableUniRegAtMI(RegClass *RC,
|
|||||||
const int RegType,
|
const int RegType,
|
||||||
const MachineInstr *MInst,
|
const MachineInstr *MInst,
|
||||||
const ValueSet *LVSetBef,
|
const ValueSet *LVSetBef,
|
||||||
MachineInstr *MIBef,
|
MachineInstr *&MIBef,
|
||||||
MachineInstr *MIAft) {
|
MachineInstr *&MIAft) {
|
||||||
|
|
||||||
int RegU = getUnusedUniRegAtMI(RC, MInst, LVSetBef);
|
int RegU = getUnusedUniRegAtMI(RC, MInst, LVSetBef);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user