mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 07:59:33 +00:00
new testcase
llvm-svn: 23409
This commit is contained in:
parent
67437dce2c
commit
be57630463
12
test/Regression/Transforms/SimplifyCFG/branch-fold.ll
Normal file
12
test/Regression/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…
x
Reference in New Issue
Block a user