From 7d2c1592f37ec239f06831a30e03f464211e1541 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Mar 2010 20:23:15 +0000 Subject: [PATCH] remove andersen's tests. llvm-svn: 97490 --- .../Andersens/2007-11-19-InlineAsm.ll | 8 ------ .../Analysis/Andersens/2008-03-19-External.ll | 12 -------- .../Analysis/Andersens/2008-04-07-Memcpy.ll | 14 ---------- .../Andersens/2008-12-27-BuiltinWrongType.ll | 19 ------------- llvm/test/Analysis/Andersens/basictest.ll | 28 ------------------- llvm/test/Analysis/Andersens/dg.exp | 4 --- llvm/test/Analysis/Andersens/external.ll | 20 ------------- llvm/test/Analysis/Andersens/modreftest.ll | 15 ---------- llvm/test/Analysis/Andersens/modreftest2.ll | 14 ---------- llvm/test/Analysis/Andersens/trivialtest.ll | 3 -- 10 files changed, 137 deletions(-) delete mode 100644 llvm/test/Analysis/Andersens/2007-11-19-InlineAsm.ll delete mode 100644 llvm/test/Analysis/Andersens/2008-03-19-External.ll delete mode 100644 llvm/test/Analysis/Andersens/2008-04-07-Memcpy.ll delete mode 100644 llvm/test/Analysis/Andersens/2008-12-27-BuiltinWrongType.ll delete mode 100644 llvm/test/Analysis/Andersens/basictest.ll delete mode 100644 llvm/test/Analysis/Andersens/dg.exp delete mode 100644 llvm/test/Analysis/Andersens/external.ll delete mode 100644 llvm/test/Analysis/Andersens/modreftest.ll delete mode 100644 llvm/test/Analysis/Andersens/modreftest2.ll delete mode 100644 llvm/test/Analysis/Andersens/trivialtest.ll diff --git a/llvm/test/Analysis/Andersens/2007-11-19-InlineAsm.ll b/llvm/test/Analysis/Andersens/2007-11-19-InlineAsm.ll deleted file mode 100644 index 5ba34997e93d..000000000000 --- a/llvm/test/Analysis/Andersens/2007-11-19-InlineAsm.ll +++ /dev/null @@ -1,8 +0,0 @@ -; RUN: opt < %s -anders-aa -disable-output - -define void @x(i16 %Y) { -entry: - %tmp = call i16 asm "bswap $0", "=r,r"(i16 %Y) - ret void -} - diff --git a/llvm/test/Analysis/Andersens/2008-03-19-External.ll b/llvm/test/Analysis/Andersens/2008-03-19-External.ll deleted file mode 100644 index a9731037669b..000000000000 --- a/llvm/test/Analysis/Andersens/2008-03-19-External.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: opt < %s -anders-aa -gvn -S | not grep undef -; PR2160 - -declare void @f(i32*) - -define i32 @g() { -entry: - %tmp = alloca i32 ; [#uses=2] - call void @f( i32* %tmp ) - %tmp2 = load i32* %tmp ; [#uses=1] - ret i32 %tmp2 -} diff --git a/llvm/test/Analysis/Andersens/2008-04-07-Memcpy.ll b/llvm/test/Analysis/Andersens/2008-04-07-Memcpy.ll deleted file mode 100644 index 5a50dd56214c..000000000000 --- a/llvm/test/Analysis/Andersens/2008-04-07-Memcpy.ll +++ /dev/null @@ -1,14 +0,0 @@ -; RUN: opt < %s -anders-aa -gvn -S | not grep undef -; PR2169 - -declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind -declare void @use(i8) - -define void @f(i8* %x) { -entry: - %copy = alloca i8 ; [#uses=6] - call void @llvm.memcpy.i32( i8* %copy, i8* %x, i32 1, i32 4 ) - %tmp = load i8* %copy ; [#uses=1] - call void @use(i8 %tmp) - ret void -} diff --git a/llvm/test/Analysis/Andersens/2008-12-27-BuiltinWrongType.ll b/llvm/test/Analysis/Andersens/2008-12-27-BuiltinWrongType.ll deleted file mode 100644 index da6751139f2e..000000000000 --- a/llvm/test/Analysis/Andersens/2008-12-27-BuiltinWrongType.ll +++ /dev/null @@ -1,19 +0,0 @@ -; RUN: opt < %s -anders-aa -; PR3262 - -@.str15 = external global [3 x i8] ; <[3 x i8]*> [#uses=1] - -declare i8* @strtok(...) -declare i8* @memmove(...) - -define void @test1(i8* %want1) nounwind { -entry: - %0 = call i8* (...)* @strtok(i32 0, i8* getelementptr ([3 x i8]* @.str15, i32 0, i32 0)) nounwind ; [#uses=0] - unreachable -} - -define void @test2() nounwind { -entry: - %0 = call i8* (...)* @memmove() - unreachable -} diff --git a/llvm/test/Analysis/Andersens/basictest.ll b/llvm/test/Analysis/Andersens/basictest.ll deleted file mode 100644 index 47226dd8da7a..000000000000 --- a/llvm/test/Analysis/Andersens/basictest.ll +++ /dev/null @@ -1,28 +0,0 @@ -; RUN: opt < %s -anders-aa -aa-eval 2>/dev/null - -define void @test1() { - %X = malloc i32* - %Y = malloc i32 - %Z = ptrtoint i32* %Y to i32 - %W = inttoptr i32 %Z to i32* - store i32* %W, i32** %X - ret void -} - -define void @test2(i32* %P) { - %X = malloc i32* - %Y = malloc i32 - store i32* %P, i32** %X - ret void -} - -define internal i32 *@test3(i32* %P) { - ret i32* %P -} - -define void @test4() { - %X = malloc i32 - %Y = call i32* @test3(i32* %X) - %ZZ = getelementptr i32* null, i32 17 - ret void -} diff --git a/llvm/test/Analysis/Andersens/dg.exp b/llvm/test/Analysis/Andersens/dg.exp deleted file mode 100644 index 1eb4755c4102..000000000000 --- a/llvm/test/Analysis/Andersens/dg.exp +++ /dev/null @@ -1,4 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] - diff --git a/llvm/test/Analysis/Andersens/external.ll b/llvm/test/Analysis/Andersens/external.ll deleted file mode 100644 index 13c12dc558a7..000000000000 --- a/llvm/test/Analysis/Andersens/external.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: opt < %s -anders-aa -gvn -deadargelim -S | grep store | not grep null - -; Because the 'internal' function is passed to an external function, we don't -; know what the incoming values will alias. As such, we cannot do the -; optimization checked by the 'arg-must-alias.ll' test. - -declare void @external(i32(i32*)*) -@G = internal constant i32* null - -define internal i32 @internal(i32* %ARG) { - ;;; We *DON'T* know that ARG always points to null! - store i32* %ARG, i32** @G - ret i32 0 -} - -define i32 @foo() { - call void @external(i32(i32*)* @internal) - %V = call i32 @internal(i32* null) - ret i32 %V -} diff --git a/llvm/test/Analysis/Andersens/modreftest.ll b/llvm/test/Analysis/Andersens/modreftest.ll deleted file mode 100644 index e0c2edc4c237..000000000000 --- a/llvm/test/Analysis/Andersens/modreftest.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: opt < %s -anders-aa -gvn -instcombine -S \ -; RUN: | grep {ret i1 true} - -@G = internal global i32* null -declare i32 *@ext() - -define i1 @bar() { - %V1 = load i32** @G - %X2 = call i32 *@ext() - %V2 = load i32** @G - store i32* %X2, i32** @G - - %C = icmp eq i32* %V1, %V2 - ret i1 %C -} diff --git a/llvm/test/Analysis/Andersens/modreftest2.ll b/llvm/test/Analysis/Andersens/modreftest2.ll deleted file mode 100644 index 562c961e7d46..000000000000 --- a/llvm/test/Analysis/Andersens/modreftest2.ll +++ /dev/null @@ -1,14 +0,0 @@ -; RUN: opt < %s -anders-aa -gvn -S \ -; RUN: | not grep {ret i32 undef} - -;; From PR 2160 -declare void @f(i32*) - -define i32 @g() { -entry: - %tmp = alloca i32 ; [#uses=2] - call void @f( i32* %tmp ) - %tmp2 = load i32* %tmp ; [#uses=1] - ret i32 %tmp2 -} - diff --git a/llvm/test/Analysis/Andersens/trivialtest.ll b/llvm/test/Analysis/Andersens/trivialtest.ll deleted file mode 100644 index f9f938f8f1f9..000000000000 --- a/llvm/test/Analysis/Andersens/trivialtest.ll +++ /dev/null @@ -1,3 +0,0 @@ -; RUN: opt < %s -anders-aa -disable-output - -define void @foo() { ret void }