aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-fold.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-10-26 20:37:36 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-10-28 01:17:01 -0700
commit3f2739e4664fbb1026ff1ef9db2e8262d5f58cc2 (patch)
tree2e53accff7670605450fa57cc4bd18076445a77b /gcc/c/c-fold.cc
parent0942bb85fc55735d1339a26c9473f7ad1f30100e (diff)
downloadgcc-3f2739e4664fbb1026ff1ef9db2e8262d5f58cc2.zip
gcc-3f2739e4664fbb1026ff1ef9db2e8262d5f58cc2.tar.gz
gcc-3f2739e4664fbb1026ff1ef9db2e8262d5f58cc2.tar.bz2
phiopt: Move check for maybe_undef_p slightly earlier
This moves the check for maybe_undef_p in match_simplify_replacement slightly earlier before figuring out the true/false arg using arg0/arg1 instead. In most cases this is no difference in compile time; just in the case there is an undef in the args there would be a slight compile time improvement as there is no reason to figure out which arg corresponds to the true/false side of the conditional. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-phiopt.cc (match_simplify_replacement): Move check for maybe_undef_p earlier. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/c/c-fold.cc')
0 files changed, 0 insertions, 0 deletions