aboutsummaryrefslogtreecommitdiffstats
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
commita0426450dafbbff6eb574d6a1cb6fbcd9dbb92dd (patch)
tree2f33312e118e596b9d970fd68ed4d3c95f871816 /lib/CodeGen/MachineCSE.cpp
parent2b8890f8354ef742b6917695c14826cf52b23b66 (diff)
downloadexternal_llvm-a0426450dafbbff6eb574d6a1cb6fbcd9dbb92dd.zip
external_llvm-a0426450dafbbff6eb574d6a1cb6fbcd9dbb92dd.tar.gz
external_llvm-a0426450dafbbff6eb574d6a1cb6fbcd9dbb92dd.tar.bz2
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 ada95cd..68407c8 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);