aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CalcSpillWeights.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-09 02:01:46 +0000
committerDale Johannesen <dalej@apple.com>2010-02-09 02:01:46 +0000
commitd94998f52574eacef148bd856de701af2c594b03 (patch)
tree6e322d8320bd89ffe43b53fdb53c103330ff64cd /lib/CodeGen/CalcSpillWeights.cpp
parent8581e0147cd7622ecec96a47310fc1a211b77908 (diff)
downloadexternal_llvm-d94998f52574eacef148bd856de701af2c594b03.zip
external_llvm-d94998f52574eacef148bd856de701af2c594b03.tar.gz
external_llvm-d94998f52574eacef148bd856de701af2c594b03.tar.bz2
Skip DEBUG_VALUE in some places where it was affecting codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CalcSpillWeights.cpp')
-rw-r--r--lib/CodeGen/CalcSpillWeights.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CalcSpillWeights.cpp b/lib/CodeGen/CalcSpillWeights.cpp
index b8ef219..7da833b 100644
--- a/lib/CodeGen/CalcSpillWeights.cpp
+++ b/lib/CodeGen/CalcSpillWeights.cpp
@@ -64,6 +64,9 @@ bool CalculateSpillWeights::runOnMachineFunction(MachineFunction &fn) {
if (mi->getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
continue;
+ if (mi->getOpcode() == TargetInstrInfo::DEBUG_VALUE)
+ continue;
+
for (unsigned i = 0, e = mi->getNumOperands(); i != e; ++i) {
const MachineOperand &mopi = mi->getOperand(i);
if (!mopi.isReg() || mopi.getReg() == 0)