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:
d199aa0
)
Simplify by using isFullCopy().
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 2 Sep 2011 18:18:29 +0000
(18:18 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 2 Sep 2011 18:18:29 +0000
(18:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139019
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegisterCoalescer.cpp
b/lib/CodeGen/RegisterCoalescer.cpp
index c07970d69bf7d9f741d0cd40d598e3ff665eb3b0..62d63063430b81877a7d2369189d5145c0ad6eef 100644
(file)
--- a/
lib/CodeGen/RegisterCoalescer.cpp
+++ b/
lib/CodeGen/RegisterCoalescer.cpp
@@
-948,9
+948,7
@@
RegisterCoalescer::UpdateRegDefsUses(const CoalescerPair &CP) {
// A PhysReg copy that won't be coalesced can perhaps be rematerialized
// instead.
if (DstIsPhys) {
- if (UseMI->isCopy() &&
- !UseMI->getOperand(1).getSubReg() &&
- !UseMI->getOperand(0).getSubReg() &&
+ if (UseMI->isFullCopy() &&
UseMI->getOperand(1).getReg() == SrcReg &&
UseMI->getOperand(0).getReg() != SrcReg &&
UseMI->getOperand(0).getReg() != DstReg &&