projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001f753
)
No need to remove dead range from soon-to-be-dead live interval. Its val# may be...
author
Evan Cheng
<evan.cheng@apple.com>
Sun, 12 Aug 2007 01:26:19 +0000
(
01:26
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sun, 12 Aug 2007 01:26:19 +0000
(
01:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41024
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SimpleRegisterCoalescing.cpp
b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 6870aff8166221fa02e25736a25fade8b1691e84..e71b9d4c0f810a14fef17831c6bdba1e36fcf017 100644
(file)
--- a/
lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/
lib/CodeGen/SimpleRegisterCoalescing.cpp
@@
-316,9
+316,9
@@
bool SimpleRegisterCoalescing::JoinCopy(MachineInstr *CopyMI,
}
if (isShorten || isDead) {
- // Shorten the live interval.
- LiveInterval &LiveInInt = (repSrcReg == DstInt.reg) ? DstInt : SrcInt;
-
LiveIn
Int.removeRange(RemoveStart, RemoveEnd);
+ // Shorten the
destination
live interval.
+ if (repSrcReg == DstInt.reg)
+
Dst
Int.removeRange(RemoveStart, RemoveEnd);
}
} else {
// Coalescing failed.