]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AutoFDO] Check count initialization to fix ICE with AutoFDO
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>
Mon, 8 Sep 2025 09:10:44 +0000 (19:10 +1000)
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>
Mon, 8 Sep 2025 10:37:48 +0000 (20:37 +1000)
commit80b453d5e4b423730033fd15bc26075347dfd5ba
tree04463be2ec91c40c588ecbad2b9d8d0f411730f6
parentc2048dae34104a9e172eec6747ab59f4404fba2f
[AutoFDO] Check count initialization to fix ICE with AutoFDO

Fix ICE with AutoFDO by adding initialization check
before accessing IPA counts to avoid issues with uninitialized profile
counts in self-recursive clone processing.

gcc/ChangeLog:

2025-09-08  Kugan Vivekanandarajah  <kvivekananda@nvidia.com>

* ipa-cp.cc (gather_count_of_non_rec_edges): Check count
initialization before adding to total.

Signed-off-by: Kugan Vivekanandarajah <kvivekananda@nvidia.com>
gcc/ipa-cp.cc