mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Ding dong, the DoesntAccessMemoryFns and
OnlyReadsMemoryFns tables are dead! We get more, and more accurate, information from gcc via the readnone and readonly function attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -adce | llvm-dis | not grep call
|
||||
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
|
||||
|
||||
declare int %strlen(sbyte*)
|
||||
declare i32 @strlen(i8*) readonly
|
||||
|
||||
void %test() {
|
||||
;; Dead call should be deleted!
|
||||
call int %strlen(sbyte *null)
|
||||
define void @test() {
|
||||
call i32 @strlen( i8* null ) readonly ; <i32>:1 [#uses=0]
|
||||
ret void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user