mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 01:43:06 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
055dc102e9
commit
9a82a3ccac
12
test/Transforms/SimplifyCFG/branch-fold.ll
Normal file
12
test/Transforms/SimplifyCFG/branch-fold.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
|
||||
|
||||
void %test(int* %P, int* %Q, bool %A, bool %B) {
|
||||
br bool %A, label %a, label %b ;; fold the two branches into one
|
||||
a:
|
||||
br bool %B, label %b, label %c
|
||||
b:
|
||||
store int 123, int* %P
|
||||
ret void
|
||||
c:
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user