blob: 5aef808b84ada42eddd3010188ca8c5c9c7eab5a [file] [log] [blame]
Chris Lattner2b83af52004-05-23 21:31:00 +00001; RUN: llvm-as < %s | 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}