diff options
author | Clement Courbet <courbet@google.com> | 2018-02-06 08:40:18 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-02-06 08:40:18 +0000 |
commit | 333be329c49bffa98741085a0ae0962e754cc7cf (patch) | |
tree | 4ded2bd56cca70b4499cffbc925153423ea6982e /llvm/lib/CodeGen | |
parent | 7d09780fa20514751dbcc9a181dd2f75d756367d (diff) | |
download | bcm5719-llvm-333be329c49bffa98741085a0ae0962e754cc7cf.tar.gz bcm5719-llvm-333be329c49bffa98741085a0ae0962e754cc7cf.zip |
Revert "[MergeICmps] Enable the MergeICmps Pass by default."
Breaks clang-ppc64be-linux-multistage buildbot.
This reverts commit 515bab711f308c2e8299c49dd8c84ea6a2e0b60e.
llvm-svn: 324319
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 84597570c16..43fec69495b 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()); } |