mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +00:00
Restore this assert now that the livevar bug is fixed.
This verifies kill info for "ret" fp operands is right. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1053,8 +1053,13 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
|
|||||||
MachineOperand &Op = MI->getOperand(i);
|
MachineOperand &Op = MI->getOperand(i);
|
||||||
if (!Op.isReg() || Op.getReg() < X86::FP0 || Op.getReg() > X86::FP6)
|
if (!Op.isReg() || Op.getReg() < X86::FP0 || Op.getReg() > X86::FP6)
|
||||||
continue;
|
continue;
|
||||||
// assert(Op.isUse() && Op.isKill() &&
|
// FP Register uses must be kills unless there are two uses of the same
|
||||||
// "Ret only defs operands, and values aren't live beyond it");
|
// register, in which case only one will be a kill.
|
||||||
|
assert(Op.isUse() &&
|
||||||
|
(Op.isKill() || // Marked kill.
|
||||||
|
getFPReg(Op) == FirstFPRegOp || // Second instance.
|
||||||
|
MI->killsRegister(Op.getReg())) && // Later use is marked kill.
|
||||||
|
"Ret only defs operands, and values aren't live beyond it");
|
||||||
|
|
||||||
if (FirstFPRegOp == ~0U)
|
if (FirstFPRegOp == ~0U)
|
||||||
FirstFPRegOp = getFPReg(Op);
|
FirstFPRegOp = getFPReg(Op);
|
||||||
|
|||||||
Reference in New Issue
Block a user