summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/GlobalDCE
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Regression/Transforms/GlobalDCE')
-rw-r--r--llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll5
-rw-r--r--llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll5
-rw-r--r--llvm/test/Regression/Transforms/GlobalDCE/basicvariabletest.ll6
3 files changed, 3 insertions, 13 deletions
diff --git a/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll b/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
index 57ed72a93dc..a923eb34412 100644
--- a/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
+++ b/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
@@ -1,10 +1,7 @@
; Make sure that functions are removed successfully if they are referred to by
; a global that is dead. Make sure any globals they refer to die as well.
-; RUN: if as < %s | opt -globaldce | dis | grep foo
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -globaldce | dis | not grep foo
%b = internal global int ()* %foo ;; Unused, kills %foo
diff --git a/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll b/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll
index b969424cb11..039d597b8c2 100644
--- a/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll
+++ b/llvm/test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll
@@ -1,10 +1,7 @@
; This testcase tests that a worklist is being used, and that globals can be
; removed if they are the subject of a constexpr and ConstantPointerRef
-; RUN: if as < %s | opt -globaldce | dis | grep global
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
+; RUN: as < %s | opt -globaldce | dis | not grep global
%t0 = internal global [4 x sbyte] c"foo\00"
%t1 = internal global [4 x sbyte] c"bar\00"
diff --git a/llvm/test/Regression/Transforms/GlobalDCE/basicvariabletest.ll b/llvm/test/Regression/Transforms/GlobalDCE/basicvariabletest.ll
index a3d65c79f4b..1f5c61b66ef 100644
--- a/llvm/test/Regression/Transforms/GlobalDCE/basicvariabletest.ll
+++ b/llvm/test/Regression/Transforms/GlobalDCE/basicvariabletest.ll
@@ -1,8 +1,4 @@
-; RUN: if as < %s | opt -globaldce | dis | grep global
-; RUN: then exit 1
-; RUN: else exit 0
-; RUN: fi
-
+; RUN: as < %s | opt -globaldce | dis | not grep global
%X = uninitialized global int
%Y = internal global int 7
OpenPOWER on IntegriCloud