]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Minor tweaks to ipa-pure-const.cc
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 12 Sep 2025 09:30:22 +0000 (11:30 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 12 Sep 2025 09:31:27 +0000 (11:31 +0200)
gcc/
* ipa-pure-const.cc (check_stmt): Minor formatting tweaks.
(pass_data_nothrow): Fix pasto in description.

gcc/ipa-pure-const.cc

index 2519fb8a03bd5e4458f393eb1aa89ae6d66133dd..1af9da16781bac8cc761b1ce83f7e3d525c807cd 100644 (file)
@@ -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.  */