forked from OSchip/llvm-project
Trust kill flags from isel and later passes.
llvm-svn: 103748
This commit is contained in:
parent
41f8dc897e
commit
68c235bd4d
|
@ -673,10 +673,6 @@ void RAFast::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
|||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI->getOperand(i);
|
||||
if (!MO.isReg()) continue;
|
||||
|
||||
// FIXME: For now, don't trust kill flags
|
||||
if (MO.isUse()) MO.setIsKill(false);
|
||||
|
||||
unsigned Reg = MO.getReg();
|
||||
if (!Reg || !TargetRegisterInfo::isPhysicalRegister(Reg) ||
|
||||
ReservedRegs.test(Reg)) continue;
|
||||
|
|
Loading…
Reference in New Issue