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 | c1be92f3bb9158eade30d97db6997e2fe78150ab (patch) | |
tree | c82e3b33a2f28fbda625ce88fda90cdc55e7e95b /test/Analysis/GlobalsModRef | |
parent | 9baee3b3a3924bc45d007e54c71333739d135f8e (diff) | |
download | external_llvm-c1be92f3bb9158eade30d97db6997e2fe78150ab.zip external_llvm-c1be92f3bb9158eade30d97db6997e2fe78150ab.tar.gz external_llvm-c1be92f3bb9158eade30d97db6997e2fe78150ab.tar.bz2 |
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
Diffstat (limited to 'test/Analysis/GlobalsModRef')
-rw-r--r-- | test/Analysis/GlobalsModRef/aliastest.ll | 2 | ||||
-rw-r--r-- | test/Analysis/GlobalsModRef/chaining-analysis.ll | 2 | ||||
-rw-r--r-- | test/Analysis/GlobalsModRef/indirect-global.ll | 2 | ||||
-rw-r--r-- | test/Analysis/GlobalsModRef/modreftest.ll | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/Analysis/GlobalsModRef/aliastest.ll b/test/Analysis/GlobalsModRef/aliastest.ll index 3e5d119..75af4dc 100644 --- a/test/Analysis/GlobalsModRef/aliastest.ll +++ b/test/Analysis/GlobalsModRef/aliastest.ll @@ -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) { diff --git a/test/Analysis/GlobalsModRef/chaining-analysis.ll b/test/Analysis/GlobalsModRef/chaining-analysis.ll index b1d4593..431b2a6 100644 --- a/test/Analysis/GlobalsModRef/chaining-analysis.ll +++ b/test/Analysis/GlobalsModRef/chaining-analysis.ll @@ -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). diff --git a/test/Analysis/GlobalsModRef/indirect-global.ll b/test/Analysis/GlobalsModRef/indirect-global.ll index 4074909..1eab0bc 100644 --- a/test/Analysis/GlobalsModRef/indirect-global.ll +++ b/test/Analysis/GlobalsModRef/indirect-global.ll @@ -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] diff --git a/test/Analysis/GlobalsModRef/modreftest.ll b/test/Analysis/GlobalsModRef/modreftest.ll index 257c0ee..3a02a94 100644 --- a/test/Analysis/GlobalsModRef/modreftest.ll +++ b/test/Analysis/GlobalsModRef/modreftest.ll @@ -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) { |