
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.
14 lines
295 B
LLVM
14 lines
295 B
LLVM
; distilled from 255.vortex
|
|
; RUN: opt < %s -passes=globaldce -S | FileCheck %s
|
|
|
|
; CHECK-NOT: testfunc
|
|
|
|
declare ptr @getfunc()
|
|
|
|
define internal i1 @testfunc() {
|
|
%F = call ptr @getfunc() ; <ptr> [#uses=1]
|
|
%c = icmp eq ptr %F, @testfunc ; <i1> [#uses=1]
|
|
ret i1 %c
|
|
}
|
|
|