mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
4572ce85b0
llvm-svn: 33296
18 lines
410 B
LLVM
18 lines
410 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|