Chris Lattner | 2b83af5 | 2004-05-23 21:31:00 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | opt -anders-aa -load-vn -gcse -deadargelim | llvm-dis | not grep ARG |
2 | |||||
3 | %G = internal constant int* null | ||||
4 | |||||
5 | implementation | ||||
6 | |||||
7 | internal 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 | |||||
14 | int %foo() { | ||||
15 | %V = call int %internal(int* null) | ||||
16 | ret int %V | ||||
17 | } |