diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-21 06:45:54 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-21 06:45:54 +0000 |
commit | f7b45f47e5f61815ddd9f0481b0afa726d2ef955 (patch) | |
tree | fc913b7ad0b8385d33b65e4e6a040b6fbb19b190 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | 6fe96037ff0e10b513259c13ae0627f8f5aad592 (diff) | |
download | external_llvm-f7b45f47e5f61815ddd9f0481b0afa726d2ef955.zip external_llvm-f7b45f47e5f61815ddd9f0481b0afa726d2ef955.tar.gz external_llvm-f7b45f47e5f61815ddd9f0481b0afa726d2ef955.tar.bz2 |
Undo spill weight tweak. Need to investigate the performance regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 24e7fde..ed295ac 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -2145,7 +2145,6 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) { mii = mbbi->erase(mii); ++numPeep; } else if (!isMove || !TurnCopyIntoImpDef(mii, mbb, DstReg, SrcReg)) { - bool isMem = mii->getDesc().mayLoad() || mii->getDesc().mayStore(); SmallSet<unsigned, 4> UniqueUses; for (unsigned i = 0, e = mii->getNumOperands(); i != e; ++i) { const MachineOperand &mop = mii->getOperand(i); @@ -2158,7 +2157,7 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) { continue; LiveInterval &RegInt = li_->getInterval(reg); RegInt.weight += - li_->getSpillWeight(mop.isDef(), mop.isUse(), isMem, loopDepth); + li_->getSpillWeight(mop.isDef(), mop.isUse(), loopDepth); UniqueUses.insert(reg); } } |