[all-commits] [llvm/llvm-project] a7b626: [NFC] [DwarfEHPrepare] Add additional stats for EH

modiking via All-commits all-commits at lists.llvm.org
Wed Jun 23 17:14:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7b62699c8dcdcf14bac9560eb970da4296ce993
      https://github.com/llvm/llvm-project/commit/a7b62699c8dcdcf14bac9560eb970da4296ce993
  Author: modimo <modimo at fb.com>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M llvm/lib/CodeGen/DwarfEHPrepare.cpp

  Log Message:
  -----------
  [NFC] [DwarfEHPrepare] Add additional stats for EH

Stats added:

1. NumCleanupLandingPadsUnreachable: how many cleanup landing pads were optimized as unreachable
1. NumCleanupLandingPadsRemaining: how many cleanup landing pads remain
1. NumNoUnwind: Number of functions with nounwind attribute
1. NumUnwind: Number of functions with unwind attribute

DwarfEHPrepare is always run a single time as part of `TargetPassConfig::addISelPasses()` which makes it an ideal place near the end of the pipeline to record this information.

Example output from clang built with exceptions cumulative during thinLTO backend (NumCleanupLandingPadsUnreachable was not incremented):

	"dwarfehprepare.NumCleanupLandingPadsRemaining": 123660,
	"dwarfehprepare.NumNoUnwind": 323836,
	"dwarfehprepare.NumUnwind": 472893,

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D104161




More information about the All-commits mailing list