[all-commits] [llvm/llvm-project] 264c66: [BPI] Use BasicBlock::isEHPad() to check exception...

Enna1 via All-commits all-commits at lists.llvm.org
Mon Jun 17 06:18:33 PDT 2024


  Branch: refs/heads/users/Enna1/BPI-use-isEHPad
  Home:   https://github.com/llvm/llvm-project
  Commit: 264c66412905b217a82d334f204898387b928eed
      https://github.com/llvm/llvm-project/commit/264c66412905b217a82d334f204898387b928eed
  Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-06-17 (Mon, 17 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp

  Log Message:
  -----------
  [BPI] Use BasicBlock::isEHPad() to check exception handling block.

There is no need to iterate all predecessors of current block, check if
current block is the invoke unwind destination of any predcessor.
We can directly call `BasicBlock::isEHPad()` to check if current block
is a exception handling block.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list