diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-04 16:52:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-04 16:52:44 +0000 |
commit | 48caa6bfaa851f55d5aeaf0899de52e59e1c0a29 (patch) | |
tree | c47df1f086b455b2889aa902e1032f880457bfe2 /lib/CodeGen/RegisterScavenging.cpp | |
parent | 1f2eea761cc95baeb75a535d8f29cf3798f0c023 (diff) | |
download | external_llvm-48caa6bfaa851f55d5aeaf0899de52e59e1c0a29.zip external_llvm-48caa6bfaa851f55d5aeaf0899de52e59e1c0a29.tar.gz external_llvm-48caa6bfaa851f55d5aeaf0899de52e59e1c0a29.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegisterScavenging.cpp')
-rw-r--r-- | lib/CodeGen/RegisterScavenging.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index e1c8f2f..0a29ef0 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/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; } |