]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] [AutoFDO] Fix 'inlined' set in inline_functions_by_afdo
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>
Tue, 2 Dec 2025 09:37:23 +0000 (20:37 +1100)
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>
Tue, 2 Dec 2025 09:37:23 +0000 (20:37 +1100)
loop in 'inline_functions_by_afdo' that attempts to inline functions guided
by AutoFDO profiles unnecessarily sets'inlined' flag to true.

gcc/ChangeLog:

2025-11-27  Kugan Vivekanandarajah  <kvivekananda@nvidia.com>

* ipa-inline.cc (inline_functions_by_afdo): Remove resetting bool inlined.

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

index 1f2287da8967ab33d73f161a8814c62681ee36d0..4be1fe5f2436e37be6fa3b8c1462284694e2cccf 100644 (file)
@@ -3196,7 +3196,6 @@ inline_functions_by_afdo (struct cgraph_node *node, bool *speculative_calls)
        remove_afdo_speculative_target (e);
       inline_call (e, true, NULL, NULL, false);
       inlined |= inline_functions_by_afdo (e->callee, speculative_calls);
-      inlined = true;
     }
 
   if (inlined && !node->inlined_to)