1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Analysis/DSGraph/mustalias.ll

18 lines
374 B
LLVM
Raw Normal View History

2003-06-29 01:52:34 +02:00
; Test that ds-aa is returning must-alias information when it can.
; XFAIL: *
; RUN: llvm-as < %s | opt -no-aa -ds-aa -load-vn -gcse | llvm-dis | not grep load
2003-06-29 01:52:34 +02:00
%X = internal global int 20
2003-06-29 01:52:34 +02:00
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
}