summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-08-04 16:52:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-08-04 16:52:44 +0000
commit206ee96bd64745a2efa6dd6f2c659ca39310bf6e (patch)
treee233d4ff991dd6e6fe24fa138265633040d1e7d1 /llvm/lib/CodeGen
parentd6ff33294a1283b7ee6b2b610eb0b4e8349afd0c (diff)
downloadbcm5719-llvm-206ee96bd64745a2efa6dd6f2c659ca39310bf6e.tar.gz
bcm5719-llvm-206ee96bd64745a2efa6dd6f2c659ca39310bf6e.zip
Fix PR4528. This scavenger assertion is too strict. The two-address value is
killed by another operand. There is probably a better fix. Either 1) scavenger can look at other operands, or 2) livevariables can be smarter about kill markers. Patches welcome. llvm-svn: 78072
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegisterScavenging.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterScavenging.cpp b/llvm/lib/CodeGen/RegisterScavenging.cpp
index e1c8f2fe22e..0a29ef02bcb 100644
--- a/llvm/lib/CodeGen/RegisterScavenging.cpp
+++ b/llvm/lib/CodeGen/RegisterScavenging.cpp
@@ -267,7 +267,8 @@ void RegScavenger::forward() {
unsigned UseIdx;
if (MI->isRegTiedToUseOperand(Idx, &UseIdx) &&
!MI->getOperand(UseIdx).isUndef()) {
- assert(isUsed(Reg) && "Using an undefined register!");
+ assert(!MI->getOperand(UseIdx).isKill() &&
+ "Using an undefined register!");
continue;
}
OpenPOWER on IntegriCloud