]> git.ipfire.org Git - thirdparty/gcc.git/commit
fix handling of mapped and their location
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Wed, 12 Nov 2025 09:30:30 +0000 (01:30 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 13 Nov 2025 20:56:54 +0000 (12:56 -0800)
commit6c0f06cdba12eeb51d3ca0f035e6e370779027f8
tree4df743f639bbb5d09d3e8047e58c52f3c3f54eb9
parent52165aa6b1d1a6f80bef6c90370a3b0f1a4124f6
fix handling of mapped and their location

So when we using the newly mapped location, we should check if
it is not unknown location and if so just use the original location.
Note this is a latent bug in remove_forwarder_block_with_phi code too.

This fixes gcc.dg/uninit-pr40635.c when doing more mergephi.

gcc/ChangeLog:

* tree-cfg.cc (copy_phi_arg_into_existing_phi): Use the original location
if the mapped location is unknown.

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