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:
31f94c7
)
Don't do illegal cross-class coalescing.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 9 Mar 2010 03:56:06 +0000
(
03:56
+0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 9 Mar 2010 03:56:06 +0000
(
03:56
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98044
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineCSE.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineCSE.cpp
b/lib/CodeGen/MachineCSE.cpp
index ada95cd6da5784d41852ce3e4c2e22876d4d4b1f..68407c88d8ee3ae62875c6f376b7fd235ba64dd8 100644
(file)
--- a/
lib/CodeGen/MachineCSE.cpp
+++ b/
lib/CodeGen/MachineCSE.cpp
@@
-95,7
+95,7
@@
bool MachineCSE::PerformTrivialCoalescing(MachineInstr *MI,
!SrcSubIdx && !DstSubIdx) {
const TargetRegisterClass *SRC = MRI->getRegClass(SrcReg);
const TargetRegisterClass *RC = MRI->getRegClass(Reg);
- if (SRC == RC ||
SRC->hasSubClass(RC) ||
RC->hasSubClass(SRC)) {
+ if (SRC == RC || RC->hasSubClass(SRC)) {
DEBUG(dbgs() << "Coalescing: " << *DefMI);
DEBUG(dbgs() << "*** to: " << *MI);
MO.setReg(SrcReg);