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
When removing a function from the function set and adding it to deferred, we
[llvm.git]
/
test
/
Transforms
/
InstCombine
/
odr-linkage.ll
blob
61365b4848abe8313a5539f406aae0df79a98de1
1
; RUN: opt < %s -instcombine -S | grep {ret i32 10}
2
3
@g1 = available_externally constant i32 1
4
@g2 = linkonce_odr constant i32 2
5
@g3 = weak_odr constant i32 3
6
@g4 = internal constant i32 4
7
8
define i32 @test() {
9
%A = load i32* @g1
10
%B = load i32* @g2
11
%C = load i32* @g3
12
%D = load i32* @g4
13
14
%a = add i32 %A, %B
15
%b = add i32 %a, %C
16
%c = add i32 %b, %D
17
ret i32 %c
18
}
19