aboutsummaryrefslogtreecommitdiff
path: root/tools/gccld/GenerateCode.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-02 10:10:08 +0000
committerChris Lattner <sabre@nondot.org>2004-08-02 10:10:08 +0000
commit93127fbc4af36f14f47f23175b0e0908dd6c687c (patch)
tree076ee9b13325b9d536cdec04e0d28cee0bc308f5 /tools/gccld/GenerateCode.cpp
parent1484089bbf960f7191215dfa6c0bb51c8e30794e (diff)
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
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r--tools/gccld/GenerateCode.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp
index 74576bb1ba..029d5b90fd 100644
--- a/tools/gccld/GenerateCode.cpp
+++ b/tools/gccld/GenerateCode.cpp
@@ -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