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
/
InstCombine
/
select-load-call.ll
blob
bef0cf841bfaa3b37cc1a8ae2059b6c16561decb
1
; RUN: opt < %s -instcombine -S | grep {ret i32 1}
2
3
declare void @test2()
4
5
define i32 @test(i1 %cond, i32 *%P) {
6
%A = alloca i32
7
store i32 1, i32* %P
8
store i32 1, i32* %A
9
10
call void @test2() readonly
11
12
%P2 = select i1 %cond, i32 *%P, i32* %A
13
%V = load i32* %P2
14
ret i32 %V
15
}