aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-14 00:02:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-14 00:02:23 +0000
commit57b6076d343e03237ea8b56ab291f488cc97300f (patch)
treee2064b7290270d85c6e639efd1fe501bfeaad036 /lib/CodeGen/RegAllocFast.cpp
parent7d4f25904de543b039a28eddbea3034a5d80e7f8 (diff)
downloadexternal_llvm-57b6076d343e03237ea8b56ab291f488cc97300f.zip
external_llvm-57b6076d343e03237ea8b56ab291f488cc97300f.tar.gz
external_llvm-57b6076d343e03237ea8b56ab291f488cc97300f.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index 2f59b1d..66ba86a 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;