mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
cedf6db567
I think this is all of the stuff I had pending in my tree.. llvm-svn: 13703
18 lines
395 B
LLVM
18 lines
395 B
LLVM
; RUN: llvm-as < %s | opt -anders-aa -load-vn -gcse -deadargelim | llvm-dis | not grep ARG
|
|
|
|
%G = internal constant int* null
|
|
|
|
implementation
|
|
|
|
internal int %internal(int* %ARG) {
|
|
;; The 'Arg' argument must-aliases the null pointer, so it can be subsituted
|
|
;; directly here, making it dead.
|
|
store int* %ARG, int** %G
|
|
ret int 0
|
|
}
|
|
|
|
int %foo() {
|
|
%V = call int %internal(int* null)
|
|
ret int %V
|
|
}
|