File: dropped-var-stats.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,245,028 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,675; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
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)