[llvm-commits] [llvm] r60988 - in /llvm/trunk/test/Transforms/GVN: bitcast-of-call.ll call.ll calls-nonlocal.ll calls-readonly.ll dominated.ll lpre-basic.ll nonlocal-cse.ll nonlocal.ll pre-basic-add.ll pre-load.ll pre.ll readonly-calls.ll rle-dominated.ll rle-nonlocal.ll rle-semidominated.ll semidominated.ll
Chris Lattner
sabre at nondot.org
Sat Dec 13 10:47:40 PST 2008
Author: lattner
Date: Sat Dec 13 12:47:40 2008
New Revision: 60988
URL: http://llvm.org/viewvc/llvm-project?rev=60988&view=rev
Log:
rename some tests to be more uniform in naming convention.
Added:
llvm/trunk/test/Transforms/GVN/bitcast-of-call.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/call.ll
llvm/trunk/test/Transforms/GVN/calls-nonlocal.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll
llvm/trunk/test/Transforms/GVN/calls-readonly.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/readonly-calls.ll
llvm/trunk/test/Transforms/GVN/lpre-basic.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/pre-load.ll
llvm/trunk/test/Transforms/GVN/pre-basic-add.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/pre.ll
llvm/trunk/test/Transforms/GVN/rle-dominated.ll
- copied unchanged from r60971, llvm/trunk/test/Transforms/GVN/dominated.ll
llvm/trunk/test/Transforms/GVN/rle-nonlocal.ll
- copied, changed from r60973, llvm/trunk/test/Transforms/GVN/nonlocal.ll
llvm/trunk/test/Transforms/GVN/rle-semidominated.ll
- copied, changed from r60973, llvm/trunk/test/Transforms/GVN/semidominated.ll
Removed:
llvm/trunk/test/Transforms/GVN/call.ll
llvm/trunk/test/Transforms/GVN/dominated.ll
llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll
llvm/trunk/test/Transforms/GVN/nonlocal.ll
llvm/trunk/test/Transforms/GVN/pre-load.ll
llvm/trunk/test/Transforms/GVN/pre.ll
llvm/trunk/test/Transforms/GVN/readonly-calls.ll
llvm/trunk/test/Transforms/GVN/semidominated.ll
Removed: llvm/trunk/test/Transforms/GVN/call.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/call.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/call.ll (original)
+++ llvm/trunk/test/Transforms/GVN/call.ll (removed)
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep tmp2
-; PR2213
-
-define i32* @f(i8* %x) {
-entry:
- %tmp = call i8* @m( i32 12 ) ; <i8*> [#uses=2]
- %tmp1 = bitcast i8* %tmp to i32* ; <i32*> [#uses=0]
- %tmp2 = bitcast i8* %tmp to i32* ; <i32*> [#uses=0]
- ret i32* %tmp2
-}
-
-declare i8* @m(i32)
Removed: llvm/trunk/test/Transforms/GVN/dominated.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/dominated.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/dominated.ll (original)
+++ llvm/trunk/test/Transforms/GVN/dominated.ll (removed)
@@ -1,20 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep DEAD
-
-define i32 @main(i32** %p) {
-block1:
- %z = load i32** %p
- br i1 true, label %block2, label %block3
-
-block2:
- %a = load i32** %p
- br label %block4
-
-block3:
- %b = load i32** %p
- br label %block4
-
-block4:
- %DEAD = load i32** %p
- %c = load i32* %DEAD
- ret i32 %c
-}
Removed: llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll (original)
+++ llvm/trunk/test/Transforms/GVN/nonlocal-cse.ll (removed)
@@ -1,49 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep strlen | count 2
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin9"
-
-define i32 @test(i32 %g, i8* %P) nounwind {
-entry:
- %tmp2 = call i32 @strlen( i8* %P ) nounwind readonly ; <i32> [#uses=1]
- %tmp3 = icmp eq i32 %tmp2, 100 ; <i1> [#uses=1]
- %tmp34 = zext i1 %tmp3 to i8 ; <i8> [#uses=1]
- %toBool = icmp ne i8 %tmp34, 0 ; <i1> [#uses=1]
- br i1 %toBool, label %bb, label %bb6
-
-bb: ; preds = %entry
- br label %bb27
-
-bb6: ; preds = %entry
- %tmp8 = add i32 %g, 42 ; <i32> [#uses=2]
- %tmp10 = call i32 @strlen( i8* %P ) nounwind readonly ; <i32> [#uses=1]
- %tmp11 = icmp eq i32 %tmp10, 100 ; <i1> [#uses=1]
- %tmp1112 = zext i1 %tmp11 to i8 ; <i8> [#uses=1]
- %toBool13 = icmp ne i8 %tmp1112, 0 ; <i1> [#uses=1]
- br i1 %toBool13, label %bb14, label %bb16
-
-bb14: ; preds = %bb6
- br label %bb27
-
-bb16: ; preds = %bb6
- %tmp18 = mul i32 %tmp8, 2 ; <i32> [#uses=1]
- %tmp20 = call i32 @strlen( i8* %P ) nounwind readonly ; <i32> [#uses=1]
- %tmp21 = icmp eq i32 %tmp20, 100 ; <i1> [#uses=1]
- %tmp2122 = zext i1 %tmp21 to i8 ; <i8> [#uses=1]
- %toBool23 = icmp ne i8 %tmp2122, 0 ; <i1> [#uses=1]
- br i1 %toBool23, label %bb24, label %bb26
-
-bb24: ; preds = %bb16
- br label %bb27
-
-bb26: ; preds = %bb16
- br label %bb27
-
-bb27: ; preds = %bb26, %bb24, %bb14, %bb
- %tmp.0 = phi i32 [ 11, %bb26 ], [ %tmp18, %bb24 ], [ %tmp8, %bb14 ], [ %g, %bb ] ; <i32> [#uses=1]
- br label %return
-
-return: ; preds = %bb27
- ret i32 %tmp.0
-}
-
-declare i32 @strlen(i8*) nounwind readonly
Removed: llvm/trunk/test/Transforms/GVN/nonlocal.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/nonlocal.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/nonlocal.ll (original)
+++ llvm/trunk/test/Transforms/GVN/nonlocal.ll (removed)
@@ -1,19 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
-
-define i32 @main(i32** %p) {
-block1:
- br i1 true, label %block2, label %block3
-
-block2:
- %a = load i32** %p
- br label %block4
-
-block3:
- %b = load i32** %p
- br label %block4
-
-block4:
- %DEAD = load i32** %p
- %c = load i32* %DEAD
- ret i32 %c
-}
Removed: llvm/trunk/test/Transforms/GVN/pre-load.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/pre-load.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/pre-load.ll (original)
+++ llvm/trunk/test/Transforms/GVN/pre-load.ll (removed)
@@ -1,18 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE = phi}
-
-define i32 @test(i32* %p, i1 %C) {
-block1:
- br i1 %C, label %block2, label %block3
-
-block2:
- br label %block4
-
-block3:
- %b = bitcast i32 0 to i32
- store i32 %b, i32* %p
- br label %block4
-
-block4:
- %PRE = load i32* %p
- ret i32 %PRE
-}
Removed: llvm/trunk/test/Transforms/GVN/pre.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/pre.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/pre.ll (original)
+++ llvm/trunk/test/Transforms/GVN/pre.ll (removed)
@@ -1,27 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn -enable-pre | llvm-dis | grep {.pre}
-
- at H = common global i32 0 ; <i32*> [#uses=2]
- at G = common global i32 0 ; <i32*> [#uses=1]
-
-define i32 @test() nounwind {
-entry:
- %0 = load i32* @H, align 4 ; <i32> [#uses=2]
- %1 = call i32 (...)* @foo() nounwind ; <i32> [#uses=1]
- %2 = icmp ne i32 %1, 0 ; <i1> [#uses=1]
- br i1 %2, label %bb, label %bb1
-
-bb: ; preds = %entry
- %3 = add i32 %0, 42 ; <i32> [#uses=1]
- store i32 %3, i32* @G, align 4
- br label %bb1
-
-bb1: ; preds = %bb, %entry
- %4 = add i32 %0, 42 ; <i32> [#uses=1]
- store i32 %4, i32* @H, align 4
- br label %return
-
-return: ; preds = %bb1
- ret i32 0
-}
-
-declare i32 @foo(...)
Removed: llvm/trunk/test/Transforms/GVN/readonly-calls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/readonly-calls.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/readonly-calls.ll (original)
+++ llvm/trunk/test/Transforms/GVN/readonly-calls.ll (removed)
@@ -1,29 +0,0 @@
-; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep {call.*strlen} | count 1
-; Should delete the second call to strlen even though the intervening strchr call exists.
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin7"
-
-define i8* @test(i8* %P, i8* %Q, i32 %x, i32 %y) nounwind readonly {
-entry:
- %0 = tail call i32 @strlen(i8* %P) nounwind readonly ; <i32> [#uses=2]
- %1 = icmp eq i32 %0, 0 ; <i1> [#uses=1]
- br i1 %1, label %bb, label %bb1
-
-bb: ; preds = %entry
- %2 = sdiv i32 %x, %y ; <i32> [#uses=1]
- br label %bb1
-
-bb1: ; preds = %bb, %entry
- %x_addr.0 = phi i32 [ %2, %bb ], [ %x, %entry ] ; <i32> [#uses=1]
- %3 = tail call i8* @strchr(i8* %Q, i32 97) nounwind readonly ; <i8*> [#uses=1]
- %4 = tail call i32 @strlen(i8* %P) nounwind readonly ; <i32> [#uses=1]
- %5 = add i32 %x_addr.0, %0 ; <i32> [#uses=1]
- %.sum = sub i32 %5, %4 ; <i32> [#uses=1]
- %6 = getelementptr i8* %3, i32 %.sum ; <i8*> [#uses=1]
- ret i8* %6
-}
-
-declare i32 @strlen(i8*) nounwind readonly
-
-declare i8* @strchr(i8*, i32) nounwind readonly
Copied: llvm/trunk/test/Transforms/GVN/rle-nonlocal.ll (from r60973, llvm/trunk/test/Transforms/GVN/nonlocal.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/rle-nonlocal.ll?p2=llvm/trunk/test/Transforms/GVN/rle-nonlocal.ll&p1=llvm/trunk/test/Transforms/GVN/nonlocal.ll&r1=60973&r2=60988&rev=60988&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/nonlocal.ll (original)
+++ llvm/trunk/test/Transforms/GVN/rle-nonlocal.ll Sat Dec 13 12:47:40 2008
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {%DEAD = phi i32. }
+; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
define i32 @main(i32** %p) {
block1:
Copied: llvm/trunk/test/Transforms/GVN/rle-semidominated.ll (from r60973, llvm/trunk/test/Transforms/GVN/semidominated.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/rle-semidominated.ll?p2=llvm/trunk/test/Transforms/GVN/rle-semidominated.ll&p1=llvm/trunk/test/Transforms/GVN/semidominated.ll&r1=60973&r2=60988&rev=60988&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/semidominated.ll (original)
+++ llvm/trunk/test/Transforms/GVN/rle-semidominated.ll Sat Dec 13 12:47:40 2008
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {DEAD = phi i32 }
+; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
define i32 @main(i32* %p) {
block1:
Removed: llvm/trunk/test/Transforms/GVN/semidominated.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/semidominated.ll?rev=60987&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/GVN/semidominated.ll (original)
+++ llvm/trunk/test/Transforms/GVN/semidominated.ll (removed)
@@ -1,19 +0,0 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {DEAD =}
-
-define i32 @main(i32* %p) {
-block1:
- %z = load i32* %p
- br i1 true, label %block2, label %block3
-
-block2:
- br label %block4
-
-block3:
- %b = bitcast i32 0 to i32
- store i32 %b, i32* %p
- br label %block4
-
-block4:
- %DEAD = load i32* %p
- ret i32 %DEAD
-}
More information about the llvm-commits
mailing list