]> git.ipfire.org Git - thirdparty/gcc.git/commit
cfgexpand: Update cache during the original DFS walk
authorAndrew Pinski <quic_apinski@quicinc.com>
Wed, 4 Dec 2024 02:57:45 +0000 (18:57 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Tue, 13 May 2025 15:27:31 +0000 (08:27 -0700)
commit232f22615857cd83735770d82c7c0178e43bee19
tree3b999a2e5e8fe22c6446563fff52e72a4341cd67
parent2d380abf62dbf6c645fe46a3cea40e2febcd9ca8
cfgexpand: Update cache during the original DFS walk

This is a small optimization which can improve how many times are need through the update loop.
It can reduce the number of times in the update loop by maybe 1 times.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* cfgexpand.cc (vars_ssa_cache::operator()): Update the cache if the use is already
has a cache.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/cfgexpand.cc