[all-commits] [llvm/llvm-project] 7ff377: [Analysis] Fix null ptr dereference when using Wri...
Tyler Nowicki via All-commits
all-commits at lists.llvm.org
Fri Aug 16 12:24:12 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ff377ba60bf9e615f3efc60268fbd74b75e54c4
https://github.com/llvm/llvm-project/commit/7ff377ba60bf9e615f3efc60268fbd74b75e54c4
Author: Tyler Nowicki <tyler.nowicki at amd.com>
Date: 2024-08-16 (Fri, 16 Aug 2024)
Changed paths:
M llvm/include/llvm/Analysis/CFGPrinter.h
M llvm/unittests/Analysis/CMakeLists.txt
A llvm/unittests/Analysis/GraphWriterTest.cpp
Log Message:
-----------
[Analysis] Fix null ptr dereference when using WriteGraph without branch probability info (#104102)
The call to 'CFGInfo->getBPI()->getEdgeProbability(Node, SuccBB);' fails
when BPI is not provided. In this case we can give up and not print any
edge attributes.
---------
Co-authored-by: tnowicki <tnowicki.nowicki at amd.com>
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