diff options
| author | Dan Gohman <gohman@apple.com> | 2010-10-18 18:04:47 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-10-18 18:04:47 +0000 |
| commit | 02538ac4d3a5e3bfc4fc530505e7f6bff144c13d (patch) | |
| tree | ccaf74be9544a62b5d25afa41d2ce5ba3d9fa18c /llvm/lib/CodeGen | |
| parent | 257374bb0fa22382782fc2525ef1439a7c41b3d1 (diff) | |
| download | bcm5719-llvm-02538ac4d3a5e3bfc4fc530505e7f6bff144c13d.tar.gz bcm5719-llvm-02538ac4d3a5e3bfc4fc530505e7f6bff144c13d.zip | |
Make BasicAliasAnalysis a normal AliasAnalysis implementation which
does normal initialization and normal chaining. Change the default
AliasAnalysis implementation to NoAlias.
Update StandardCompileOpts.h and friends to explicitly request
BasicAliasAnalysis.
Update tests to explicitly request -basicaa.
llvm-svn: 116720
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index cf46738e2c9..a3b605238ab 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -14,6 +14,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" +#include "llvm/Analysis/Passes.h" #include "llvm/Assembly/PrintModulePass.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/CodeGen/MachineFunctionAnalysis.h" @@ -254,6 +255,9 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, MCContext *&OutContext) { // Standard LLVM-Level Passes. + // Basic AliasAnalysis support. + PM.add(createBasicAliasAnalysisPass()); + // Before running any passes, run the verifier to determine if the input // coming from the front-end and/or optimizer is valid. if (!DisableVerify) |

