The legacy PM is deprecated, so update a bunch of lit tests running opt to use the new PM syntax when specifying the pipeline. In this patch focus has been put on test cases for ConstantMerge, ConstraintElimination, CorrelatedValuePropagation, GlobalDCE, GlobalOpt, SCCP, TailCallElim and PredicateInfo. Differential Revision: https://reviews.llvm.org/D114516
14 lines
352 B
LLVM
14 lines
352 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 (), void ()* ()* @fn
|
|
|
|
define internal void ()* @fn() {
|
|
entry:
|
|
ret void ()* null
|
|
}
|
|
|
|
; CHECK-DAG: @if = ifunc void (), void ()* ()* @fn
|
|
; CHECK-DAG: define internal void ()* @fn(
|