mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
202f2eab90
commit
9e762d0cd1
17
test/Analysis/DSGraph/mustalias.ll
Normal file
17
test/Analysis/DSGraph/mustalias.ll
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user