diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2009-04-09 17:16:43 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2009-04-09 17:16:43 +0000 |
| commit | 51856173c8848b5aeed0b9e56fba2353a02842ab (patch) | |
| tree | 7f9e07aef2f8ad77cd87179a5421db3f72509866 /llvm/lib/CodeGen/RegAllocLocal.cpp | |
| parent | 38533d48ddac4dba0c237470c7bb60308a2bc8cf (diff) | |
| download | bcm5719-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.cpp | 2 |
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 = |

