]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Bug gcov-profile/123019][V3] Fix Virtual SSA ICE
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>
Fri, 9 Jan 2026 00:59:27 +0000 (11:59 +1100)
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>
Fri, 9 Jan 2026 01:26:51 +0000 (12:26 +1100)
commit83b3c80fac333c429d0d8a9f58d3d494c2ba305f
treed0fd6bb09764f571ad1cd1fce3127df70fc1d0db
parent76af3bd3815eb0919a7d0eeed77ad11ca734173a
[Bug gcov-profile/123019][V3] Fix Virtual SSA ICE

The bug is a stale Virtual SSA VDEF on calls to functions that have
been marked const or pure.

pure_const pass analyzes function rocksdb::y::y() and determines it has no side
effects and marks it as const.

At this point, existing call sites to y::y() in other functions still have:
   # .MEM_12 = VDEF <.MEM_11>   rocksdb::y::y (&l, _9);
The VDEF indicates the call modifies memory but now that y::y() is const,
this VDEF is stale

Later passes  after feedback_fnsplit SSA verification fails. Added fixup.

gcc/ChangeLog:

2026-01-07  Kugan Vivekanandarajah  <kvivekananda@nvidia.com>

PR gcov-profile/123019
* auto-profile.cc (auto_profile): Call execute_fixup_cfg.

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