projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow creation of GEP constantexprs with a vector of value* operands as
[oota-llvm.git]
/
test
/
Transforms
/
ArgumentPromotion
/
chained.ll
1
; RUN: llvm-as < %s | opt -argpromotion -instcombine | llvm-dis | not grep load
2
3
%G1 = constant int 0
4
%G2 = constant int* %G1
5
6
implementation
7
8
internal int %test(int **%X) {
9
%Y = load int** %X
10
%X = load int* %Y
11
ret int %X
12
}
13
14
int %caller(int** %P) {
15
%X = call int %test(int** %G2)
16
ret int %X
17
}