diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-20 01:43:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-20 01:43:41 +0000 |
commit | 055135d1c14afa443d29c3dda02881fa76bc9b83 (patch) | |
tree | eb0584a667e634de0d3e330d8387c8052182a013 /test/Transforms/SimplifyCFG/branch-phi-thread.ll | |
parent | 2e42e36698d5a34f1952ca3389f1973a6a1166f2 (diff) | |
download | external_llvm-055135d1c14afa443d29c3dda02881fa76bc9b83.zip external_llvm-055135d1c14afa443d29c3dda02881fa76bc9b83.tar.gz external_llvm-055135d1c14afa443d29c3dda02881fa76bc9b83.tar.bz2 |
make this test harder: add a case where instructions are in the bb to be
threaded over
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/branch-phi-thread.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/branch-phi-thread.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/branch-phi-thread.ll b/test/Transforms/SimplifyCFG/branch-phi-thread.ll index 2da837d..491bb0e 100644 --- a/test/Transforms/SimplifyCFG/branch-phi-thread.ll +++ b/test/Transforms/SimplifyCFG/branch-phi-thread.ll @@ -42,3 +42,22 @@ F: ret int 123 } +int %test3(int %X, bool %D, int* %AP, int* %BP) { +E: + %C = seteq int %X, 0 + br bool %C, label %T, label %F +T: + call void %f3() ;; Inst in block. + %XX = load int* %AP + store int %XX, int* %BP + br bool %C, 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 +} |