diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-31 21:05:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-31 21:05:39 +0000 |
commit | 84991f332e926d42090c5a063540f5077d6bf399 (patch) | |
tree | afa05c63a44b017c2a4bbf811c627b8cf186527d /test/Transforms | |
parent | 5714c974006d4fe28ddd66d15e9b158493df00b6 (diff) | |
download | external_llvm-84991f332e926d42090c5a063540f5077d6bf399.zip external_llvm-84991f332e926d42090c5a063540f5077d6bf399.tar.gz external_llvm-84991f332e926d42090c5a063540f5077d6bf399.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll b/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll new file mode 100644 index 0000000..fc020cc --- /dev/null +++ b/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll @@ -0,0 +1,20 @@ +; RUN: llvm-as < %s | opt -tailduplicate -disable-output + +int %foo() { +entry: + br label %return.i + +after_ret.i: + br label %return.i + +return.i: + %tmp.3 = cast int* null to int + br label %return.i1 + +after_ret.i1: + br label %return.i1 + +return.i1: + %tmp.8 = sub int %tmp.3, 0 + ret int 0 +} |