summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 16:45:05 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 16:45:05 +0000
commitf71fe4333b0e9cff2d7224af99e75fedd9595456 (patch)
tree6b8d2072fa8a5f7652a48d093730a8c4462782ba /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parentfe1bdf291fb3202cfabff8cd9598834c1b1a5eff (diff)
downloadbcm5719-llvm-f71fe4333b0e9cff2d7224af99e75fedd9595456.tar.gz
bcm5719-llvm-f71fe4333b0e9cff2d7224af99e75fedd9595456.zip
Rename -disable-physical-join to -join-physregs and invert it.
Physreg joining is still on by default, but I will turn it off shortly. llvm-svn: 130844
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 35b8e14ddc6..44333315559 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -61,9 +61,9 @@ DisableCrossClassJoin("disable-cross-class-join",
cl::init(false), cl::Hidden);
static cl::opt<bool>
-DisablePhysicalJoin("disable-physical-join",
- cl::desc("Avoid coalescing physical register copies"),
- cl::init(false), cl::Hidden);
+EnablePhysicalJoin("join-physregs",
+ cl::desc("Join physical register copies"),
+ cl::init(true), cl::Hidden);
static cl::opt<bool>
VerifyCoalescing("verify-coalescing",
@@ -927,7 +927,7 @@ bool SimpleRegisterCoalescing::shouldJoinPhys(CoalescerPair &CP) {
if (!Allocatable && CP.isFlipped() && JoinVInt.containsOneValue())
return true;
- if (DisablePhysicalJoin) {
+ if (!EnablePhysicalJoin) {
DEBUG(dbgs() << "\tPhysreg joins disabled.\n");
return false;
}
OpenPOWER on IntegriCloud