From: Chris Lattner Date: Mon, 2 Aug 2004 10:10:08 +0000 (+0000) Subject: This pass has proven its metal, remove -disable option. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=93127fbc4af36f14f47f23175b0e0908dd6c687c;p=oota-llvm.git This pass has proven its metal, remove -disable option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15411 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 74576bb1ba3..029d5b90fdc 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -38,9 +38,6 @@ namespace { cl::opt DisableOptimizations("disable-opt", cl::desc("Do not run any optimization passes")); - cl::opt - DisableGlobalsModRef("disable-globalsmodref", cl::Hidden, - cl::desc("Turn on the more aggressive alias analysis")); } /// CopyEnv - This function takes an array of environment variables and makes a @@ -200,8 +197,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize, addPass(Passes, createScalarReplAggregatesPass()); // Break up allocas // Run a few AA driven optimizations here and now, to cleanup the code. - if (!DisableGlobalsModRef) - addPass(Passes, createGlobalsModRefPass()); // IP alias analysis + addPass(Passes, createGlobalsModRefPass()); // IP alias analysis addPass(Passes, createLICMPass()); // Hoist loop invariants addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs