mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
06d0bf99d8
COMDAT groups which have become rendered unused because of inline are discardable if we can prove that we've made the group empty. This fixes PR22285. llvm-svn: 236539
16 lines
278 B
LLVM
16 lines
278 B
LLVM
; RUN: opt < %s -inline -S | FileCheck %s
|
|
|
|
$f1 = comdat any
|
|
; CHECK-NOT: $f1 = comdat any
|
|
|
|
define void @f2() {
|
|
call void @f1()
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: define void @f2
|
|
|
|
define linkonce_odr void @f1() comdat {
|
|
ret void
|
|
}
|
|
; CHECK-NOT: define linkonce_odr void @f1() comdat
|