Trust kill flags from isel and later passes.

llvm-svn: 103748
This commit is contained in:
Jakob Stoklund Olesen 2010-05-14 00:02:23 +00:00
parent aa38789fd4
commit f913d9f2b8

View File

@ -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;