summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-04-09 17:16:43 +0000
committerBob Wilson <bob.wilson@apple.com>2009-04-09 17:16:43 +0000
commit51856173c8848b5aeed0b9e56fba2353a02842ab (patch)
tree7f9e07aef2f8ad77cd87179a5421db3f72509866 /llvm/lib/CodeGen/RegAllocLocal.cpp
parent38533d48ddac4dba0c237470c7bb60308a2bc8cf (diff)
downloadbcm5719-llvm-51856173c8848b5aeed0b9e56fba2353a02842ab.tar.gz
bcm5719-llvm-51856173c8848b5aeed0b9e56fba2353a02842ab.zip
Fix pr3954. The register scavenger asserts for inline assembly with
register destinations that are tied to source operands. The TargetInstrDescr::findTiedToSrcOperand method silently fails for inline assembly. The existing MachineInstr::isRegReDefinedByTwoAddr was very close to doing what is needed, so this revision makes a few changes to that method and also renames it to isRegTiedToUseOperand (for consistency with the very similar isRegTiedToDefOperand and because it handles both two-address instructions and inline assembly with tied registers). llvm-svn: 68714
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index b965dc9f0f6..14346e90ed7 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -633,7 +633,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
// Check if this is a two address instruction. If so, then
// the def does not kill the use.
if (last->second.first == I &&
- I->isRegReDefinedByTwoAddr(i))
+ I->isRegTiedToUseOperand(i))
continue;
MachineOperand& lastUD =
OpenPOWER on IntegriCloud