diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-14 17:54:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-14 17:54:27 +0000 |
commit | 56ef3aebd841f1704ef9fd5ad9038ecd998cc7d0 (patch) | |
tree | eb59667ac4b99a3ad7507c3f67cb0e73096bc763 | |
parent | 711b3402aafd607eeb9ec56395c78e98fe491e76 (diff) |
add a testcase, which we already handle
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17737 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/phi.ll | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll index 7459332009..c297007571 100644 --- a/test/Transforms/InstCombine/phi.ll +++ b/test/Transforms/InstCombine/phi.ll @@ -33,7 +33,7 @@ Exit: ret int %B } -int %test3(bool %b) { +int %test4(bool %b) { BB0: ret int 7 ; Loop is unreachable Loop: @@ -43,3 +43,13 @@ L2: br label %Loop } +int %test5(int %a, bool %b) { +BB0: br label %Loop + +Loop: + %B = phi int [%A, %BB0], [undef, %Loop] ; PHI has same value always. + br bool %b, label %Loop, label %Exit +Exit: + ret int %B +} + |