mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 16:07:49 +00:00
New testcase for missed case
llvm-svn: 12199
This commit is contained in:
parent
8494ba277f
commit
5a2ee65f6c
17
test/Regression/Transforms/ArgumentPromotion/chained.ll
Normal file
17
test/Regression/Transforms/ArgumentPromotion/chained.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as < %s | opt -argpromotion -instcombine | llvm-dis | not grep load
|
||||
|
||||
%G1 = constant int 0
|
||||
%G2 = constant int* %G1
|
||||
|
||||
implementation
|
||||
|
||||
internal int %test(int **%X) {
|
||||
%Y = load int** %X
|
||||
%X = load int* %Y
|
||||
ret int %X
|
||||
}
|
||||
|
||||
int %caller(int** %P) {
|
||||
%X = call int %test(int** %G2)
|
||||
ret int %X
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user