aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-09-05 16:50:58 -0700
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-09-06 09:19:00 -0700
commit8bd31f9248185824ac015a510f954fb13056230b (patch)
treec184bd1e04243f1c60594b7a61b7cd39d1677f25 /libjava/gnu/java
parent477868c59ed6d8192d16661c17b94201153cb88c (diff)
downloadgcc-8bd31f9248185824ac015a510f954fb13056230b.zip
gcc-8bd31f9248185824ac015a510f954fb13056230b.tar.gz
gcc-8bd31f9248185824ac015a510f954fb13056230b.tar.bz2
phiopt: Improve locations for factor out conditional operation [PR108466]
This improves the locations for the phi args and the newly created statement. Since this is a factorization/commonizing in one case the location for the new statement will not always be set correctly either way. The new locations on the new phi will either be the old location of the argument to the phi or the location of the defining statement (if it exists). The new statement will be either the location of the phi or the location of the defining statements if the location of the phi is unknown. This fixes the location of an uninitialized variable warning too. Bootstrapped and tested on x86_64-linux-gnu. PR tree-optimization/108466 gcc/ChangeLog: * tree-ssa-phiopt.cc (factor_out_conditional_operation): Give better locations to the new phi args and the new statement. gcc/testsuite/ChangeLog: * gcc.dg/uninit-pr108466-1.c: New test. Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions