25 lines · plain
1; RUN: opt -dropped-variable-stats %s -passes='verify' -S | FileCheck %s --check-prefix=NOT-DROPPED2; NOT-DROPPED: Pass Level, Pass Name, Num of Dropped Variables, Func or Module Name3; NOT-DROPPED-NOT: Function, ADCEPass, 1, _Z3bari4 5; ModuleID = '/tmp/dropped.cpp'6define noundef range(i32 -2147483646, -2147483648) i32 @_Z3bari(i32 noundef %y) local_unnamed_addr #1 !dbg !19 {7 #dbg_value(i32 %y, !15, !DIExpression(), !23)8 %add = add nsw i32 %y, 2,!dbg !259 ret i32 %add,!dbg !2610}11!llvm.module.flags = !{ !3, !7}12!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 20.0.0git (git@github.com:llvm/llvm-project.git 7fc8398aaad65c4c29f1511c374d07308e667af5)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")13!1 = !DIFile(filename: "/tmp/dropped.cpp", directory: "/Users/shubham/Development/llvm-project")14!3 = !{i32 2, !"Debug Info Version", i32 3}15!7 = !{i32 7, !"frame-pointer", i32 1}16!9 = distinct !DISubprogram( unit: !0, retainedNodes: !14)17!13 = !DIBasicType()18!14 = !{}19!15 = !DILocalVariable( scope: !9, type: !13)20!19 = distinct !DISubprogram( unit: !0, retainedNodes: !20)21!20 = !{}22!23 = !DILocation( scope: !9, inlinedAt: !24)23!24 = distinct !DILocation( scope: !19)24!25 = !DILocation( scope: !19)25!26 = !DILocation( scope: !19)