repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
A8.6.92 MCR (Encoding A1): if coproc == '101x' then SEE "Advanced SIMD and VFP"
[llvm/stm8.git]
/
test
/
Transforms
/
ADCE
/
basictest.ll
blob
378d70288f3f5992e50e3cf1c132686a93cdeb45
1
; RUN: opt < %s -adce -simplifycfg | llvm-dis
2
3
define i32 @Test(i32 %A, i32 %B) {
4
BB1:
5
br label %BB4
6
7
BB2: ; No predecessors!
8
br label %BB3
9
10
BB3: ; preds = %BB4, %BB2
11
%ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ] ; <i32> [#uses=1]
12
ret i32 %ret
13
14
BB4: ; preds = %BB1
15
%X = phi i32 [ %A, %BB1 ] ; <i32> [#uses=1]
16
br label %BB3
17
}
18
19