mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
dcd188d33f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47110 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
393 B
LLVM
16 lines
393 B
LLVM
; RUN: llvm-as < %s | opt -anders-aa -load-vn -gcse -deadargelim | llvm-dis | not grep ARG
|
|
|
|
@G = internal constant i32* null
|
|
|
|
define internal i32 @internal(i32* %ARG) {
|
|
;; The 'Arg' argument must-aliases the null pointer, so it can be subsituted
|
|
;; directly here, making it dead.
|
|
store i32* %ARG, i32** @G
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @foo() {
|
|
%V = call i32 @internal(i32* null)
|
|
ret i32 %V
|
|
}
|