From 08e12f1860c0433f1984bcafa9be4a05f1ac8cb0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Nov 2003 21:47:01 +0000 Subject: [PATCH] Testcase for PR116 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10034 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../ADCE/2003-11-16-MissingPostDominanceInfo.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll diff --git a/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll b/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll new file mode 100644 index 00000000000..a174b4e3866 --- /dev/null +++ b/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll @@ -0,0 +1,17 @@ +; RUN: llvm-as < %s | opt -adce | lli +declare void %exit(int) + +int %main(int %argc) { + %C = seteq int %argc, 1 + br bool %C, label %Cond, label %Done + +Cond: + br bool %C, label %Loop, label %Done + +Loop: + call void %exit(int 0) + br label %Loop + +Done: + ret int 1 +} -- 2.34.1