mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
410 B
LLVM
18 lines
410 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|