[llvm] [Analysis] Fix null ptr dereference when using WriteGraph without branch probability info (PR #104102)
Tyler Nowicki via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 12:23:44 PDT 2024
TylerNowicki wrote:
The call to 'CFGInfo->getBPI()->getEdgeProbability(Node, SuccBB);' fails when BPI is not provided. This caused WriteGraph to fail, even though it should support null BPI. This patch makes getEdgeAttribute give up if BPI is not present.
https://github.com/llvm/llvm-project/pull/104102
More information about the llvm-commits
mailing list