From cba39ca9fe3dc10ad9adcdd000f002271db86adc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Sep 2002 20:04:54 +0000 Subject: [PATCH] Fix testcase to accurately expose bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3890 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CorrelatedExprs/2002-09-23-PHIUpdateBug.ll | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll b/test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll index e2dae95f79c..0bc98ca9188 100644 --- a/test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll +++ b/test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll @@ -5,17 +5,21 @@ implementation declare void %foo(int) void %test(int %A, bool %C) { - br bool %C, label %bb3, label %bb1 + br bool %C, label %bb0, label %bb1 +bb0: + br label %bb3 +Unreachable: + br label %bb2 bb1: ;[#uses=0] %cond212 = setgt int %A, 9 ; [#uses=1] - br bool %cond212, label %bb2, label %bb3 + br bool %cond212, label %bb2, label %bb7 bb2: ;[#uses=1] %cond = setgt int %A, 7 br bool %cond, label %bb3, label %bb7 bb3: ;[#uses=1] - %X = phi int [ 0, %0], [ 12, %bb1] + %X = phi int [ 0, %bb0], [ 12, %bb2] call void %foo( int %X ) br label %bb7 -- 2.34.1