diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-19 23:48:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-19 23:48:04 +0000 |
| commit | b2a9e8115b97dba51c41eea6d234f116984db3a0 (patch) | |
| tree | 91d4eccc2fd2c1adc7eef6e5de11d35d8b1d54cf | |
| parent | c760f80fed354a1cb74ea9850607ef42099462ff (diff) | |
| download | bcm5719-llvm-b2a9e8115b97dba51c41eea6d234f116984db3a0.tar.gz bcm5719-llvm-b2a9e8115b97dba51c41eea6d234f116984db3a0.zip | |
new testcase.
llvm-svn: 23390
| -rw-r--r-- | llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll new file mode 100644 index 00000000000..9098376ba46 --- /dev/null +++ b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll @@ -0,0 +1,26 @@ +; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1' +declare void %f1() +declare void %f2() +declare void %f3() +declare void %f4() + +implementation + +int %test2(int %X, bool %D) { +E: + %C = seteq int %X, 0 + br bool %C, label %T, label %F +T: + %P = phi bool [true, %E], [%C, %A] + br bool %P, label %B, label %A +A: + call void %f1() + br bool %D, label %T, label %F +B: + call void %f2() + ret int 345 +F: + call void %f3() + ret int 123 +} + |

