From 1d866f3b1c2adbdfa96d01f0058c2c0e4a96f135 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 12 Sep 2025 11:30:22 +0200 Subject: [PATCH] Minor tweaks to ipa-pure-const.cc gcc/ * ipa-pure-const.cc (check_stmt): Minor formatting tweaks. (pass_data_nothrow): Fix pasto in description. --- gcc/ipa-pure-const.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gcc/ipa-pure-const.cc b/gcc/ipa-pure-const.cc index 2519fb8a03b..1af9da16781 100644 --- a/gcc/ipa-pure-const.cc +++ b/gcc/ipa-pure-const.cc @@ -771,8 +771,7 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa) print_gimple_stmt (dump_file, stmt, 0); } - if (gimple_has_volatile_ops (stmt) - && !gimple_clobber_p (stmt)) + if (gimple_has_volatile_ops (stmt) && !gimple_clobber_p (stmt)) { local->pure_const_state = IPA_NEITHER; if (dump_file) @@ -781,11 +780,10 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa) /* Look for loads and stores. */ walk_stmt_load_store_ops (stmt, local, - ipa ? check_ipa_load : check_load, - ipa ? check_ipa_store : check_store); + ipa ? check_ipa_load : check_load, + ipa ? check_ipa_store : check_store); - if (gimple_code (stmt) != GIMPLE_CALL - && stmt_could_throw_p (cfun, stmt)) + if (gimple_code (stmt) != GIMPLE_CALL && stmt_could_throw_p (cfun, stmt)) { if (cfun->can_throw_non_call_exceptions) { @@ -2310,7 +2308,7 @@ make_pass_warn_function_noreturn (gcc::context *ctxt) return new pass_warn_function_noreturn (ctxt); } -/* Simple local pass for pure const discovery reusing the analysis from +/* Simple local pass for nothrow discovery reusing the analysis from ipa_pure_const. This pass is effective when executed together with other optimization passes in early optimization pass queue. */ -- 2.47.3