File: dropped-var-stats.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,696 kB
  • sloc: cpp: 7,438,781; ansic: 1,393,871; asm: 1,012,926; python: 241,771; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 8,596; ml: 5,082; perl: 4,730; makefile: 3,591; awk: 3,523; javascript: 2,251; xml: 892; fortran: 672
file content (25 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
; RUN: opt -dropped-variable-stats %s -passes='verify' -S | FileCheck %s --check-prefix=NOT-DROPPED
; NOT-DROPPED: Pass Level, Pass Name, Num of Dropped Variables, Func or Module Name
; NOT-DROPPED-NOT: Function, ADCEPass, 1, _Z3bari

; ModuleID = '/tmp/dropped.cpp'
define noundef range(i32 -2147483646, -2147483648) i32 @_Z3bari(i32 noundef %y) local_unnamed_addr #1 !dbg !19 {
    #dbg_value(i32 %y, !15, !DIExpression(), !23)
  %add = add nsw i32 %y, 2,!dbg !25
  ret i32 %add,!dbg !26
}
!llvm.module.flags = !{ !3, !7}
!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: "/")
!1 = !DIFile(filename: "/tmp/dropped.cpp", directory: "/Users/shubham/Development/llvm-project")
!3 = !{i32 2, !"Debug Info Version", i32 3}
!7 = !{i32 7, !"frame-pointer", i32 1}
!9 = distinct !DISubprogram( unit: !0, retainedNodes: !14)
!13 = !DIBasicType()
!14 = !{}
!15 = !DILocalVariable( scope: !9, type: !13)
!19 = distinct !DISubprogram( unit: !0, retainedNodes: !20)
!20 = !{}
!23 = !DILocation( scope: !9, inlinedAt: !24)
!24 = distinct !DILocation( scope: !19)
!25 = !DILocation( scope: !19)
!26 = !DILocation( scope: !19)