mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Cleanup PPC CR-spill kill flags and 32- vs. 64-bit instructions
There were a few places where kill flags were not being set correctly, and where 32-bit instruction variants were being used with 64-bit registers. After r178180, this code was being triggered causing llc to assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -334,7 +334,7 @@ void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II,
|
||||
}
|
||||
|
||||
addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW))
|
||||
.addReg(Reg, getKillRegState(MI.getOperand(1).getImm())),
|
||||
.addReg(Reg, RegState::Kill),
|
||||
FrameIndex);
|
||||
|
||||
// Discard the pseudo instruction.
|
||||
@@ -399,7 +399,7 @@ void PPCRegisterInfo::lowerVRSAVESpilling(MachineBasicBlock::iterator II,
|
||||
.addReg(SrcReg, getKillRegState(MI.getOperand(0).isKill()));
|
||||
|
||||
addFrameReference(BuildMI(MBB, II, dl, TII.get(PPC::STW))
|
||||
.addReg(Reg, getKillRegState(MI.getOperand(1).getImm())),
|
||||
.addReg(Reg, RegState::Kill),
|
||||
FrameIndex);
|
||||
|
||||
// Discard the pseudo instruction.
|
||||
|
||||
Reference in New Issue
Block a user