diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-08-20 15:27:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-08-20 15:27:45 +0000 |
| commit | 019783b1bfa06d685b4d3e16471848e3d7041a64 (patch) | |
| tree | 0e28f02616800f005e4dd1b686a144e2676d2740 /llvm | |
| parent | 22c3c7be7d4175f7cc18c41919474607fb757c6b (diff) | |
| download | bcm5719-llvm-019783b1bfa06d685b4d3e16471848e3d7041a64.tar.gz bcm5719-llvm-019783b1bfa06d685b4d3e16471848e3d7041a64.zip | |
New testcase for instcombine
llvm-svn: 3396
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/phi.ll | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/phi.ll b/llvm/test/Regression/Transforms/InstCombine/phi.ll index a10d742ce83..e4b1381f851 100644 --- a/llvm/test/Regression/Transforms/InstCombine/phi.ll +++ b/llvm/test/Regression/Transforms/InstCombine/phi.ll @@ -8,7 +8,7 @@ implementation -int "test1"(int %A, bool %b) { +int %test1(int %A, bool %b) { BB0: br bool %b, label %BB1, label %BB2 BB1: %B = phi int [%A, %BB0] ; Combine away one argument PHI nodes @@ -17,3 +17,12 @@ BB2: ret int %A } +int %test2(int %A, bool %b) { +BB0: br bool %b, label %BB1, label %BB2 +BB1: + br label %BB2 +BB2: + %B = phi int [%A, %BB0], [%A, %BB1] ; Combine away PHI nodes with same values + ret int %B +} + |

