From: Andrew Pinski Date: Fri, 26 Dec 2025 20:15:02 +0000 (-0800) Subject: Revert "ifcvt: Move noce_try_cond_zero_arith last" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b929d1d396624213f3c688c59c5f68312ba659db;p=thirdparty%2Fgcc.git Revert "ifcvt: Move noce_try_cond_zero_arith last" This reverts commit ce55e48fc4ae41064b01e3241b17e6434fbaf07a. --- diff --git a/gcc/ifcvt.cc b/gcc/ifcvt.cc index 97033aad482..75d959f652c 100644 --- a/gcc/ifcvt.cc +++ b/gcc/ifcvt.cc @@ -4404,14 +4404,14 @@ noce_process_if_block (struct noce_if_info *if_info) goto success; if (noce_try_store_flag_mask (if_info)) goto success; + if (HAVE_conditional_move + && noce_try_cond_zero_arith (if_info)) + goto success; if (HAVE_conditional_move && noce_try_cmove_arith (if_info)) goto success; if (noce_try_sign_mask (if_info)) goto success; - if (HAVE_conditional_move - && noce_try_cond_zero_arith (if_info)) - goto success; } if (!else_bb && set_b)