summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-03-02 14:34:49 +0000
committerClement Courbet <courbet@google.com>2018-03-02 14:34:49 +0000
commitc6638c813bd77c76f2a01c1831004deb64399be7 (patch)
tree9262586cea4e7b0739fdb56f58199e29b80b4061 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent1de4a183d40a00cff717dd3c04b901080d0164a1 (diff)
downloadbcm5719-llvm-c6638c813bd77c76f2a01c1831004deb64399be7.tar.gz
bcm5719-llvm-c6638c813bd77c76f2a01c1831004deb64399be7.zip
[MergeICmps] Revert 324317 "Enable the MergeICmps Pass by default."
While working on PR36557. llvm-svn: 326575
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 98e4fa9c0d0..b28f56de47a 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -94,9 +94,10 @@ static cl::opt<bool> EnableImplicitNullChecks(
"enable-implicit-null-checks",
cl::desc("Fold null checks into faulting memory operations"),
cl::init(false), cl::Hidden);
-static cl::opt<bool> DisableMergeICmps("disable-mergeicmps",
- cl::desc("Disable MergeICmps Pass"),
- cl::init(false), cl::Hidden);
+static cl::opt<bool>
+ EnableMergeICmps("enable-mergeicmps",
+ cl::desc("Merge ICmp chains into a single memcmp"),
+ cl::init(false), cl::Hidden);
static cl::opt<bool> PrintLSR("print-lsr-output", cl::Hidden,
cl::desc("Print LLVM IR produced by the loop-reduce pass"));
static cl::opt<bool> PrintISelInput("print-isel-input", cl::Hidden,
@@ -595,7 +596,7 @@ void TargetPassConfig::addIRPasses() {
// loads and compares. ExpandMemCmpPass then tries to expand those calls
// into optimally-sized loads and compares. The transforms are enabled by a
// target lowering hook.
- if (!DisableMergeICmps)
+ if (EnableMergeICmps)
addPass(createMergeICmpsPass());
addPass(createExpandMemCmpPass());
}
OpenPOWER on IntegriCloud