
The script mangled both virtual-functions-base-pointer-call.ll and virtual-functions-derived-pointer-call.ll pretty badly, deleting the run line and most of the block comment. Replaced the bitcast with and addrspacecast in 2002-07-17-CastRef.ll, based on the apparent intent of the test. For 2003-07-01-SelfReference.ll, the script produced "call ptr () @getfunc" which surprisingly parses as valid.
22 lines
467 B
LLVM
22 lines
467 B
LLVM
; RUN: opt < %s -passes=globaldce -S
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
declare { ptr, i1 } @llvm.type.checked.load(ptr, i32, metadata)
|
|
|
|
define internal void @foo() {
|
|
call void @bar_with_fptr_argument(i64 ptrtoint (ptr @baz to i64))
|
|
ret void
|
|
}
|
|
|
|
define internal void @bar_with_fptr_argument(i64 %0) {
|
|
ret void
|
|
}
|
|
|
|
define internal void @baz() {
|
|
ret void
|
|
}
|
|
|
|
!999 = !{i32 1, !"Virtual Function Elim", i32 1}
|
|
!llvm.module.flags = !{!999}
|