mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
535a7a1f46
With a function pass manager, it would insert debuginfo metadata before getting to function passes while processing the pass manager, causing debugify to skip while running the function passes. Skip special passes + verifier + printing passes. Compared to the legacy implementation of -debugify-each, this additionally skips verifier passes. Probably no need to update the legacy version since it will be obsolete soon. This fixes 2 instcombine tests using -debugify-each under NPM. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D91558
16 lines
533 B
LLVM
16 lines
533 B
LLVM
; RUN: opt %s -disable-output -debugify-each -debugify-quiet -debugify-export - -globalopt | FileCheck %s
|
|
; RUN: opt %s -disable-output -debugify-each -debugify-quiet -debugify-export - -passes=globalopt | FileCheck %s
|
|
|
|
; CHECK: Pass Name
|
|
; CHECK-SAME: # of missing debug values
|
|
; CHECK-SAME: # of missing locations
|
|
; CHECK-SAME: Missing/Expected value ratio
|
|
; CHECK-SAME: Missing/Expected location ratio
|
|
|
|
; CHECK: {{Module Verifier|GlobalOptPass}}
|
|
; CHECK-SAME: 0,0,0.000000e+00,0.000000e+00
|
|
|
|
define void @foo() {
|
|
ret void
|
|
}
|