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

Enna1 via All-commits all-commits at lists.llvm.org
Sun Jun 23 18:45:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f49dab19e861baeb0d87452e652ed97d3883d1a
      https://github.com/llvm/llvm-project/commit/8f49dab19e861baeb0d87452e652ed97d3883d1a
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

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

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

There is no need to iterate all predecessors of current block, check if
current block is the invoke unwind destination of any predecessor. We
can directly call `BasicBlock::isEHPad()` to check if current block is
an 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