[llvm-commits] CVS: llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll 2002-05-15-MissedTree.ll 2002-05-15-SubReassociate.ll 2002-05-15-SubReassociate2.ll basictest.ll basictest2.ll looptest.ll otherops.ll subtest.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Jun 28 18:26:06 PDT 2003
Changes in directory llvm/test/Regression/Transforms/Reassociate:
2002-05-15-AgressiveSubMove.ll updated: 1.2 -> 1.3
2002-05-15-MissedTree.ll updated: 1.1 -> 1.2
2002-05-15-SubReassociate.ll updated: 1.2 -> 1.3
2002-05-15-SubReassociate2.ll updated: 1.1 -> 1.2
basictest.ll updated: 1.1 -> 1.2
basictest2.ll updated: 1.1 -> 1.2
looptest.ll updated: 1.2 -> 1.3
otherops.ll updated: 1.1 -> 1.2
subtest.ll updated: 1.2 -> 1.3
---
Log message:
Remove explicit control flow through the use of the 'not' script
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
diff -u llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll:1.2 llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll:1.3
--- llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll:1.2 Wed May 15 19:56:59 2002
+++ llvm/test/Regression/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
-; RUN: if as < %s | opt -reassociate -instcombine -constprop -dce | dis | grep add
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -instcombine -constprop -dce | dis | not grep add
-int "test"(int %A) {
+int %test(int %A) {
%X = add int %A, 1
%Y = add int %A, 1
%r = sub int %X, %Y
Index: llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll
diff -u llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll:1.1 llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll:1.2
--- llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll:1.1 Wed May 15 16:56:51 2002
+++ llvm/test/Regression/Transforms/Reassociate/2002-05-15-MissedTree.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
-; RUN: if as < %s | opt -reassociate -instcombine -constprop -die | dis | grep 5
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -instcombine -constprop -die | dis | not grep 5
-int "test"(int %A, int %B) {
+int %test(int %A, int %B) {
%W = add int %B, -5
%Y = add int %A, 5
%Z = add int %W, %Y
Index: llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll
diff -u llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll:1.2 llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll:1.3
--- llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll:1.2 Wed May 15 19:56:36 2002
+++ llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate.ll Sat Jun 28 18:23:31 2003
@@ -1,11 +1,8 @@
; With sub reassociation, constant folding can eliminate all of the constants.
;
-; RUN: if as < %s | opt -reassociate -constprop -instcombine -dce | dis | grep add
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -instcombine -dce | dis | not grep add
-int "test"(int %A, int %B) {
+int %test(int %A, int %B) {
%W = add int 5, %B
%X = add int -7, %A
%Y = sub int %X, %W
Index: llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll
diff -u llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll:1.1 llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll:1.2
--- llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll:1.1 Wed May 15 16:59:31 2002
+++ llvm/test/Regression/Transforms/Reassociate/2002-05-15-SubReassociate2.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
; With sub reassociation, constant folding can eliminate the two 12 constants.
;
-; RUN: if as < %s | opt -reassociate -constprop -dce | dis | grep 12
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -dce | dis | not grep 12
int "test"(int %A, int %B, int %C, int %D) {
%M = add int %A, 12
Index: llvm/test/Regression/Transforms/Reassociate/basictest.ll
diff -u llvm/test/Regression/Transforms/Reassociate/basictest.ll:1.1 llvm/test/Regression/Transforms/Reassociate/basictest.ll:1.2
--- llvm/test/Regression/Transforms/Reassociate/basictest.ll:1.1 Wed May 8 16:34:21 2002
+++ llvm/test/Regression/Transforms/Reassociate/basictest.ll Sat Jun 28 18:23:31 2003
@@ -1,11 +1,8 @@
; With reassociation, constant folding can eliminate the 12 and -12 constants.
;
-; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep add
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -instcombine -die | dis | not grep add
-int "test"(int %arg) {
+int %test(int %arg) {
%tmp1 = sub int -12, %arg
%tmp2 = add int %tmp1, 12
ret int %tmp2
Index: llvm/test/Regression/Transforms/Reassociate/basictest2.ll
diff -u llvm/test/Regression/Transforms/Reassociate/basictest2.ll:1.1 llvm/test/Regression/Transforms/Reassociate/basictest2.ll:1.2
--- llvm/test/Regression/Transforms/Reassociate/basictest2.ll:1.1 Wed May 8 16:34:21 2002
+++ llvm/test/Regression/Transforms/Reassociate/basictest2.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
; With reassociation, constant folding can eliminate the +/- 30 constants.
;
-; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep 30
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -instcombine -die | dis | not grep 30
int "test"(int %reg109, int %reg1111) {
%reg115 = add int %reg109, -30 ; <int> [#uses=1]
Index: llvm/test/Regression/Transforms/Reassociate/looptest.ll
diff -u llvm/test/Regression/Transforms/Reassociate/looptest.ll:1.2 llvm/test/Regression/Transforms/Reassociate/looptest.ll:1.3
--- llvm/test/Regression/Transforms/Reassociate/looptest.ll:1.2 Tue Oct 15 16:21:42 2002
+++ llvm/test/Regression/Transforms/Reassociate/looptest.ll Sat Jun 28 18:23:31 2003
@@ -12,10 +12,7 @@
; In this case, we want to reassociate the specified expr so that i+j can be
; hoisted out of the inner most loop.
;
-; RUN: if as < %s | opt -reassociate | dis | grep 115 | grep 117
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate | dis | grep 115 | not grep 117
%.LC0 = internal global [4 x sbyte] c"%d\0A\00" ; <[4 x sbyte]*> [#uses=1]
Index: llvm/test/Regression/Transforms/Reassociate/otherops.ll
diff -u llvm/test/Regression/Transforms/Reassociate/otherops.ll:1.1 llvm/test/Regression/Transforms/Reassociate/otherops.ll:1.2
--- llvm/test/Regression/Transforms/Reassociate/otherops.ll:1.1 Wed May 8 16:34:22 2002
+++ llvm/test/Regression/Transforms/Reassociate/otherops.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
; Reassociation should apply to Add, Mul, And, Or, & Xor
;
-; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep 12
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -instcombine -die | dis | not grep 12
int "test_mul"(int %arg) {
%tmp1 = mul int 12, %arg
Index: llvm/test/Regression/Transforms/Reassociate/subtest.ll
diff -u llvm/test/Regression/Transforms/Reassociate/subtest.ll:1.2 llvm/test/Regression/Transforms/Reassociate/subtest.ll:1.3
--- llvm/test/Regression/Transforms/Reassociate/subtest.ll:1.2 Wed May 15 19:56:59 2002
+++ llvm/test/Regression/Transforms/Reassociate/subtest.ll Sat Jun 28 18:23:31 2003
@@ -1,9 +1,6 @@
; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
;
-; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep 12
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -reassociate -constprop -instcombine -die | dis | not grep 12
int "test"(int %A, int %B) {
%X = add int -12, %A
More information about the llvm-commits
mailing list