From 84991f332e926d42090c5a063540f5077d6bf399 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 31 Aug 2003 21:05:39 +0000 Subject: New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8275 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../TailDup/2003-08-31-UnreachableBlocks.ll | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll (limited to 'test/Transforms') 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 +} -- cgit v1.1