llvm-6502/test/Analysis/Andersens/arg-must-alias.ll
Chris Lattner 2b83af553a Testcases for andersen's alias analysis.
I think this is all of the stuff I had pending in my tree..


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13703 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-23 21:31:00 +00:00

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
}