diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-28 23:23:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-28 23:23:34 +0000 |
commit | 50e8682f282f1ae04ce18cb84b638d126f499faf (patch) | |
tree | a4a90ec6cef9abbcbf77538cd77712a28c9cf7ff /test/Transforms/GlobalDCE | |
parent | 69686725d7dca5c4caf196c1904bcac85129e6b6 (diff) | |
download | external_llvm-50e8682f282f1ae04ce18cb84b638d126f499faf.zip external_llvm-50e8682f282f1ae04ce18cb84b638d126f499faf.tar.gz external_llvm-50e8682f282f1ae04ce18cb84b638d126f499faf.tar.bz2 |
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/GlobalDCE')
-rw-r--r-- | test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll | 5 | ||||
-rw-r--r-- | test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll | 5 | ||||
-rw-r--r-- | test/Transforms/GlobalDCE/basicvariabletest.ll | 6 |
3 files changed, 3 insertions, 13 deletions
diff --git a/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll b/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll index 57ed72a..a923eb3 100644 --- a/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll +++ b/test/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/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll b/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll index b969424..039d597 100644 --- a/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll +++ b/test/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/test/Transforms/GlobalDCE/basicvariabletest.ll b/test/Transforms/GlobalDCE/basicvariabletest.ll index a3d65c7..1f5c61b 100644 --- a/test/Transforms/GlobalDCE/basicvariabletest.ll +++ b/test/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 |