diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-25 16:17:50 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-25 16:17:50 +0000 |
| commit | 983dd43b159e0becf11ba61c557619168e981276 (patch) | |
| tree | ae0121cc023b528127684a192c58ce554e43e6fa /llvm/lib | |
| parent | d11cf9677fce2573639ca5966ea70a493dccb0fe (diff) | |
| download | bcm5719-llvm-983dd43b159e0becf11ba61c557619168e981276.tar.gz bcm5719-llvm-983dd43b159e0becf11ba61c557619168e981276.zip | |
Remove the -disable-cross-class-join option.
Cross-class joins have been normal and fully supported for a while now.
With TableGen generating the getMatchingSuperRegClass() hook, they are
unlikely to cause problems again.
llvm-svn: 155552
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index a82a5898345..16b9a7dbd9d 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -63,11 +63,6 @@ EnableJoining("join-liveintervals", cl::init(true)); static cl::opt<bool> -DisableCrossClassJoin("disable-cross-class-join", - cl::desc("Avoid coalescing cross register class copies"), - cl::init(false), cl::Hidden); - -static cl::opt<bool> EnablePhysicalJoin("join-physregs", cl::desc("Join physical register copies"), cl::init(false), cl::Hidden); @@ -1094,14 +1089,10 @@ bool RegisterCoalescer::JoinCopy(MachineInstr *CopyMI, bool &Again) { return false; } } else { - // Avoid constraining virtual register regclass too much. - if (CP.isCrossClass()) { - DEBUG(dbgs() << "\tCross-class to " << CP.getNewRC()->getName() << ".\n"); - if (DisableCrossClassJoin) { - DEBUG(dbgs() << "\tCross-class joins disabled.\n"); - return false; - } - } + DEBUG({ + if (CP.isCrossClass()) + dbgs() << "\tCross-class to " << CP.getNewRC()->getName() << ".\n"; + }); // When possible, let DstReg be the larger interval. if (!CP.getSubIdx() && LIS->getInterval(CP.getSrcReg()).ranges.size() > |

