projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ce882
)
RegisterCoalescer::reMaterializeTrivialDef() can constrain the destination
author
Cameron Zwarich
<zwarich@apple.com>
Thu, 14 Feb 2013 03:25:24 +0000
(
03:25
+0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Thu, 14 Feb 2013 03:25:24 +0000
(
03:25
+0000)
register class to match the defining instruction.
llvm-svn: 175130
llvm/lib/CodeGen/RegisterCoalescer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/RegisterCoalescer.cpp
b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index
07ae8a2
..
e2488ad
100644
(file)
--- a/
llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/
llvm/lib/CodeGen/RegisterCoalescer.cpp
@@
-769,7
+769,7
@@
bool RegisterCoalescer::reMaterializeTrivialDef(CoalescerPair &CP,
// extract_subreg, insert_subreg, subreg_to_reg coalescing.
const TargetRegisterClass *RC = TII->getRegClass(MCID, 0, TRI, *MF);
if (TargetRegisterInfo::isVirtualRegister(DstReg)) {
- if (
MRI->getRegClass(DstReg) != RC
)
+ if (
!MRI->constrainRegClass(DstReg, RC)
)
return false;
} else if (!RC->contains(DstReg))
return false;