diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-03 18:26:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-03 18:26:41 +0000 |
commit | 9b08fec8bb3130690c6cf16e9476762b769dc23a (patch) | |
tree | 5f8363a4543b2436014df97916a51b4bb1815330 /test/Transforms/SimplifyCFG/PhiEliminate.ll | |
parent | 8e75ee212f95861138f813d095d581828ca111cb (diff) | |
download | external_llvm-9b08fec8bb3130690c6cf16e9476762b769dc23a.zip external_llvm-9b08fec8bb3130690c6cf16e9476762b769dc23a.tar.gz external_llvm-9b08fec8bb3130690c6cf16e9476762b769dc23a.tar.bz2 |
expand testcase, which has been in my tree for a while now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/PhiEliminate.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/PhiEliminate.ll | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/test/Transforms/SimplifyCFG/PhiEliminate.ll b/test/Transforms/SimplifyCFG/PhiEliminate.ll index ba5f81b..f8e06c0 100644 --- a/test/Transforms/SimplifyCFG/PhiEliminate.ll +++ b/test/Transforms/SimplifyCFG/PhiEliminate.ll @@ -9,6 +9,35 @@ declare void %use(bool) declare void %use(int) + +void %test2(bool %c, bool %d, int %V, int %V2) { + br bool %d, label %X, label %F +X: + br bool %c, label %T, label %F +T: + br label %F +F: + %B1 = phi bool [true, %0], [false, %T], [false, %X] + %B2 = phi bool [true, %T], [false, %0], [false, %X] + %I1 = phi int [1, %T], [0, %0], [2, %X] + %I2 = phi int [1, %0], [0, %T], [3, %X] + %I3 = phi int [17, %T], [0, %0], [4, %X] + %I4 = phi int [17, %T], [5, %0], [44, %X] + %I5 = phi int [%V, %T], [0, %0], [%V, %X] + %I6 = phi int [%V, %0], [0, %T], [%V, %X] + %I7 = phi int [%V, %0], [%V2, %T], [%V2, %X] + call void %use(bool %B1) + call void %use(bool %B2) + call void %use(int %I1) + call void %use(int %I2) + call void %use(int %I3) + call void %use(int %I4) + call void %use(int %I5) + call void %use(int %I6) + call void %use(int %I7) + ret void +} + void %test(bool %c, int %V, int %V2) { br bool %c, label %T, label %F T: @@ -34,4 +63,3 @@ F: call void %use(int %I7) ret void } - |