New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-28 23:52:34 +00:00
parent 202f2eab90
commit 9e762d0cd1

View File

@ -0,0 +1,17 @@
; Test that ds-aa is returning must-alias information when it can.
; RUN: as < %s | opt -no-aa -ds-aa -load-vn -gcse | dis | not grep load
%X = global int 20
implementation
int* %id(int* %P) { ret int* %P }
int %main() {
store int 0, int* %X
%XP = call int* %id(int* %X)
%A = load int* %XP ; Should eliminate load!
ret int %A
}