diff options
author | Clement Courbet <courbet@google.com> | 2019-09-10 09:18:00 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2019-09-10 09:18:00 +0000 |
commit | 612c260ec3fe15cd2b661dead1aa8fef34906cf4 (patch) | |
tree | bfdaa74eb0d7839c5b541e2818fad1bfd1a60d30 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 1da4f47195c2e5e4faaaca265ae2f9d9149b85df (diff) | |
download | bcm5719-llvm-612c260ec3fe15cd2b661dead1aa8fef34906cf4.tar.gz bcm5719-llvm-612c260ec3fe15cd2b661dead1aa8fef34906cf4.zip |
Reland "r364412 [ExpandMemCmp][MergeICmps] Move passes out of CodeGen into opt pipeline."
With a fix for sanitizer breakage (see explanation in D60318).
llvm-svn: 371502
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index ba780e718bb..e372b426062 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -100,9 +100,6 @@ 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> 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, @@ -643,16 +640,6 @@ void TargetPassConfig::addIRPasses() { addPass(createPrintFunctionPass(dbgs(), "\n\n*** Code after LSR ***\n")); } - if (getOptLevel() != CodeGenOpt::None) { - // The MergeICmpsPass tries to create memcmp calls by grouping sequences of - // 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) - addPass(createMergeICmpsLegacyPass()); - addPass(createExpandMemCmpPass()); - } - // Run GC lowering passes for builtin collectors // TODO: add a pass insertion point here addPass(createGCLoweringPass()); |