Matt Arsenault 8570893cfd GlobalDCE: Convert tests to opaque pointers
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.
2022-11-27 21:07:27 -05:00

14 lines
319 B
LLVM

; RUN: opt -S -passes=globaldce < %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@if = ifunc void (), ptr @fn
define internal ptr @fn() {
entry:
ret ptr null
}
; CHECK-DAG: @if = ifunc void (), ptr @fn
; CHECK-DAG: define internal ptr @fn(