You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
587 B
17 lines
587 B
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
|
|
; Test that when all members of llvm.compiler.used are found to be redundant
|
|
; we delete it instead of crashing.
|
|
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
|
|
@llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
|
|
|
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
|
|
|
; CHECK-NOT: @llvm.compiler.used
|
|
; CHECK: @llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
|
; CHECK-NOT: @llvm.compiler.used
|