
This is the first patch in a series intended for removing flag -enable-new-pm=0 from lit tests. This is part of a bigger effort of completely removing legacy code related to legacy pass manager in favor of currently default new pass manager. In this patch flag has been removed only from tests where no significant change has been required because checks has been duplicated for both PMs. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D134150
16 lines
304 B
LLVM
16 lines
304 B
LLVM
; RUN: opt < %s -passes='cgscc(inline),globaldce' -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
|