repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
GVN
/
local-pre.ll
blob
5f03984653a97409ebc88a68be8cbae78648c8c6
1
; RUN: opt < %s -gvn -enable-pre -S | grep {b.pre}
2
3
define i32 @main(i32 %p) {
4
block1:
5
6
br i1 true, label %block2, label %block3
7
8
block2:
9
%a = add i32 %p, 1
10
br label %block4
11
12
block3:
13
br label %block4
14
15
block4:
16
%b = add i32 %p, 1
17
ret i32 %b
18
}