This pass has proven its metal, remove -disable option.
authorChris Lattner <sabre@nondot.org>
Mon, 2 Aug 2004 10:10:08 +0000 (10:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Aug 2004 10:10:08 +0000 (10:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15411 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccld/GenerateCode.cpp

index 74576bb1ba38732e1f1248c457f2b5ebadccc3b5..029d5b90fdcac82fe64f27e1a4925d509a95376a 100644 (file)
@@ -38,9 +38,6 @@ namespace {
   cl::opt<bool>
   DisableOptimizations("disable-opt",
                        cl::desc("Do not run any optimization passes"));
-  cl::opt<bool>
-  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