aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Mem2Reg
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-28 23:23:34 +0000
committerChris Lattner <sabre@nondot.org>2003-06-28 23:23:34 +0000
commit50e8682f282f1ae04ce18cb84b638d126f499faf (patch)
treea4a90ec6cef9abbcbf77538cd77712a28c9cf7ff /test/Transforms/Mem2Reg
parent69686725d7dca5c4caf196c1904bcac85129e6b6 (diff)
Remove explicit control flow through the use of the 'not' script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Mem2Reg')
-rw-r--r--test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll5
-rw-r--r--test/Transforms/Mem2Reg/DifferingTypes.ll5
-rw-r--r--test/Transforms/Mem2Reg/PromoteMemToRegister.ll5
3 files changed, 3 insertions, 12 deletions
diff --git a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
index 6114538781..f895150949 100644
--- a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
+++ b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
@@ -1,8 +1,5 @@
; Promoting some values allows promotion of other values.
-; RUN: if as < %s | opt -mem2reg | dis | grep alloca
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -mem2reg | dis | not grep alloca
int %test2() {
%result = alloca int ; ty=int*
diff --git a/test/Transforms/Mem2Reg/DifferingTypes.ll b/test/Transforms/Mem2Reg/DifferingTypes.ll
index 782deaafc4..e1069a41b9 100644
--- a/test/Transforms/Mem2Reg/DifferingTypes.ll
+++ b/test/Transforms/Mem2Reg/DifferingTypes.ll
@@ -2,10 +2,7 @@
; generated code should perform the appropriate masking operations required
; depending on the endianness of the target...
-; RUN: if as < %s | opt -mem2reg | dis | grep 'alloca'
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -mem2reg | dis | not grep 'alloca'
implementation
diff --git a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll
index aacf5bf1f5..ea30cdb5b8 100644
--- a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll
+++ b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll
@@ -1,8 +1,5 @@
; Simple sanity check testcase. Both alloca's should be eliminated.
-; RUN: if as < %s | opt -mem2reg | dis | grep 'alloca'
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -mem2reg | dis | not grep 'alloca'
implementation