aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-09 21:34:36 +0000
committerOwen Anderson <resistor@mac.com>2008-07-09 21:34:36 +0000
commiteb580ee133594a821d971352c9b93dd2689def05 (patch)
tree34f1f7d1919f516965d05675b6c4e93d2d31850f /lib/CodeGen/RegAllocLocal.cpp
parent03b5ee77620483408a36c09e67ef2db1c5164de9 (diff)
Loosen our check here. Local regalloc only cares that the reg is used and def'd by the same instruction, but about the details of
the relationship. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index 3e1038daa9..7f65f1b29e 100644
--- a/lib/CodeGen/RegAllocLocal.cpp
+++ b/lib/CodeGen/RegAllocLocal.cpp
@@ -592,9 +592,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
// If this is a two address instr, then we don't mark the def
// as killing the use.
- if (last->second.first == I &&
- I->getDesc().getOperandConstraint(last->second.second,
- TOI::TIED_TO) == (signed)i) {
+ if (last->second.first == I) {
LastUseDef[MO.getReg()] = std::make_pair(I, i);
continue;
}