aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-09 03:56:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-09 03:56:06 +0000
commit1552cccc76c62513a1b38dc1d6fac2c11897cebe (patch)
tree2f33312e118e596b9d970fd68ed4d3c95f871816 /lib/CodeGen/MachineCSE.cpp
parent31f94c7c22cbf59753764bc17130dca6a73c0b4e (diff)
Don't do illegal cross-class coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCSE.cpp')
-rw-r--r--lib/CodeGen/MachineCSE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp
index ada95cd6da..68407c88d8 100644
--- 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);