]> git.ipfire.org Git - thirdparty/gcc.git/commit
forwprop: Add a quick out for new_src_based_on_copy when both are decls
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 16 Sep 2025 16:48:52 +0000 (09:48 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Wed, 17 Sep 2025 18:36:05 +0000 (11:36 -0700)
commit4b83df548f3f16c8c5bd83d82801f8219984e089
treef9d2344b28bbaa97b4de9346a825c90e6dcc883b
parent09e1ba1cc0f62afaec1e768843fc5e055da14a23
forwprop: Add a quick out for new_src_based_on_copy when both are decls

If both operands that are being compared are decls, operand_equal_p will already
handle that case so an early out can be done here.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* tree-ssa-forwprop.cc (new_src_based_on_copy): An early out
if both are decls.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/tree-ssa-forwprop.cc