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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2010-10-18 18:04:47 +00:00
parent 9baee3b3a3
commit c1be92f3bb
81 changed files with 115 additions and 91 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | not grep load
@X = internal global i32 4 ; <i32*> [#uses=1]
define i32 @test(i32* %P) {
@@ -1,4 +1,4 @@
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | not grep load
; This test requires the use of previous analyses to determine that
; doesnotmodX does not modify X (because 'sin' doesn't).
@@ -1,4 +1,4 @@
; RUN: opt < %s -globalsmodref-aa -gvn -instcombine -S | \
; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -instcombine -S | \
; RUN: grep {ret i32 0}
@G = internal global i32* null ; <i32**> [#uses=3]
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | not grep load
@X = internal global i32 4 ; <i32*> [#uses=2]
define i32 @test(i32* %P) {