[PATCH] D57849: llvm-dwarfdump: Stop counting out-of-line subprogram in the "inlined functions" statistic.
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 13:14:41 PST 2019
aprantl added inline comments.
================
Comment at: test/tools/llvm-dwarfdump/X86/stats-inlining-multi-cu.ll:9
; CHECK-SAME: "unique source variables":4
-; CHECK-SAME: "source variables":6
+; CHECK-SAME: "source variables":8
; CHECK-SAME: "variables with location":6
----------------
cmtice wrote:
> aprantl wrote:
> > Where do the extra two variables come from?
> There are two inlined instances, each of which has 3 variables (parameter T, i from the first lexical block, i from the second lexical block); function a has a local variable 'a'; function b has a local variable 'b'. Total = 8.
Is this counting the template parameter T as a variable? That seems wrong to me. I think we should only count entities that could have a `DW_AT_location` in their DW_TAG.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57849/new/
https://reviews.llvm.org/D57849
More information about the llvm-commits
mailing list