repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git]
/
test
/
CodeGen
/
Generic
/
GC
/
argpromotion.ll
blob
5df947a9fb12aec112ef222fd64b31376142a549
1
; RUN: llvm-as < %s | opt -anders-aa -argpromotion
2
3
declare void @llvm.gcroot(i8**, i8*)
4
5
define i32 @g() {
6
entry:
7
%var = alloca i32
8
store i32 1, i32* %var
9
%x = call i32 @f(i32* %var)
10
ret i32 %x
11
}
12
13
define internal i32 @f(i32* %xp) gc "example" {
14
entry:
15
%var = alloca i8*
16
call void @llvm.gcroot(i8** %var, i8* null)
17
%x = load i32* %xp
18
ret i32 %x
19
}