mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 16:31:33 +00:00
58571d663c
memory just like a store" with bug fixed (partial-overwrite.ll is the regression test). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86667 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
410 B
LLVM
20 lines
410 B
LLVM
; RUN: opt -S -dse < %s | FileCheck %s
|
|
|
|
declare void @llvm.lifetime.end(i64, i8*)
|
|
declare void @llvm.memset.i8(i8*, i8, i8, i32)
|
|
|
|
define void @test1() {
|
|
; CHECK: @test1
|
|
%A = alloca i8
|
|
|
|
store i8 0, i8* %A ;; Written to by memset
|
|
call void @llvm.lifetime.end(i64 1, i8* %A)
|
|
; CHECK: lifetime.end
|
|
|
|
call void @llvm.memset.i8(i8* %A, i8 0, i8 -1, i32 0)
|
|
; CHECK-NOT: memset
|
|
|
|
ret void
|
|
; CHECK: ret void
|
|
}
|