blob: d19b381e4a14ca75e17c32c6b27ae912b530071d [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -anders-aa -load-vn -gcse -deadargelim | llvm-dis | not grep ARG
2
3%G = internal constant int* null
4
5implementation
6
7internal int %internal(int* %ARG) {
8 ;; The 'Arg' argument must-aliases the null pointer, so it can be subsituted
9 ;; directly here, making it dead.
10 store int* %ARG, int** %G
11 ret int 0
12}
13
14int %foo() {
15 %V = call int %internal(int* null)
16 ret int %V
17}