aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/error.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-31 13:54:21 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-09-09 00:21:45 -0700
commitd1b3d099dd5789e3e7943ed23a9cd8c6c9689b2b (patch)
tree6444c5654a57c716c077a12bb0feb1345454e3e8 /gcc/fortran/error.cc
parent91bc2ad28c58ca3f4c2f96601d8af51f570e08c4 (diff)
downloadgcc-d1b3d099dd5789e3e7943ed23a9cd8c6c9689b2b.zip
gcc-d1b3d099dd5789e3e7943ed23a9cd8c6c9689b2b.tar.gz
gcc-d1b3d099dd5789e3e7943ed23a9cd8c6c9689b2b.tar.bz2
phiopt: Small refactoring/cleanup of non-ssa name case of factor_out_conditional_operation
This small cleanup removes a redundant check for gimple_assign_cast_p and reformats based on that. Also changes the if statement that checks if the integral type and the check to see if the constant fits into the new type such that it returns null and reformats based on that. Also moves the check for has_single_use earlier so it is less complex still a cheaper check than some of the others (like the check on the integer side). This was noticed when adding a few new things to factor_out_conditional_operation but those are not ready to submit yet. Note there are no functional difference with this change. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-phiopt.cc (factor_out_conditional_operation): Move the has_single_use checks much earlier. Remove redundant check for gimple_assign_cast_p. Change around the check if the integral consts fits into the new type. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/fortran/error.cc')
0 files changed, 0 insertions, 0 deletions