mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
Trust kill flags from isel and later passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d4f25904d
commit
57b6076d34
@ -673,10 +673,6 @@ void RAFast::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
|||||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||||
MachineOperand &MO = MI->getOperand(i);
|
MachineOperand &MO = MI->getOperand(i);
|
||||||
if (!MO.isReg()) continue;
|
if (!MO.isReg()) continue;
|
||||||
|
|
||||||
// FIXME: For now, don't trust kill flags
|
|
||||||
if (MO.isUse()) MO.setIsKill(false);
|
|
||||||
|
|
||||||
unsigned Reg = MO.getReg();
|
unsigned Reg = MO.getReg();
|
||||||
if (!Reg || !TargetRegisterInfo::isPhysicalRegister(Reg) ||
|
if (!Reg || !TargetRegisterInfo::isPhysicalRegister(Reg) ||
|
||||||
ReservedRegs.test(Reg)) continue;
|
ReservedRegs.test(Reg)) continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user