repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
Transforms
/
JumpThreading
/
dup-cond.ll
blob
0d14c8a54e1fe4fdac0863e67292cb9b3d444483
1
; RUN: opt < %s -jump-threading -die -S | grep icmp | count 1
2
3
declare void @f1()
4
declare void @f2()
5
declare void @f3()
6
7
define i32 @test(i32 %A) {
8
%tmp455 = icmp eq i32 %A, 42
9
br i1 %tmp455, label %BB1, label %BB2
10
11
BB2:
12
call void @f1()
13
br label %BB1
14
15
16
BB1:
17
%tmp459 = icmp eq i32 %A, 42
18
br i1 %tmp459, label %BB3, label %BB4
19
20
BB3:
21
call void @f2()
22
ret i32 3
23
24
BB4:
25
call void @f3()
26
ret i32 4
27
}
28
29
30