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
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
Analysis
/
BasicAA
/
nocapture.ll
blob
7970fbb9a03debdb407f923763782d74f5392a1b
1
; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
2
3
declare i32* @test(i32* nocapture)
4
5
define i32 @test2() {
6
%P = alloca i32
7
%Q = call i32* @test(i32* %P)
8
%a = load i32* %P
9
store i32 4, i32* %Q ;; cannot clobber P since it is nocapture.
10
%b = load i32* %P
11
%c = sub i32 %a, %b
12
ret i32 %c
13
}
14