
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
17 lines
418 B
LLVM
17 lines
418 B
LLVM
; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s
|
|
|
|
define void @foo() {
|
|
entry:
|
|
; CHECK-LABEL: entry:
|
|
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc:[0-9]+]]
|
|
|
|
call void @foo() ;; line 1
|
|
ret void
|
|
|
|
; CHECK-LABEL: tailrecurse:
|
|
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc]]
|
|
}
|
|
|
|
;; Make sure tailrecurse has the call instruction's DL
|
|
; CHECK: ![[DbgLoc]] = !DILocation(line: 1
|