From f913d9f2b84d6aeb2b1ea12e77d1f7d14faa67ae Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 14 May 2010 00:02:23 +0000 Subject: [PATCH] Trust kill flags from isel and later passes. llvm-svn: 103748 --- lib/CodeGen/RegAllocFast.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index 2f59b1d849b..66ba86ac94c 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/lib/CodeGen/RegAllocFast.cpp @@ -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;