On 9/7/26 8:43 AM, [email protected] wrote:
From: Kyrylo Tkachov <[email protected]>

noce_convert_multiple_sets_1 walks a candidate sequence twice looking for an
insn that clobbers the non-canonicalized condition, once for the sequence
built with it and once for the sequence built without.  Both walks repeat the
same test, including the guard for rev_cc_cmp being absent.

Move it into noce_seq_clobbers_cc_cmp_p.  No functional change.

gcc/ChangeLog:

        * ifcvt.cc (noce_seq_clobbers_cc_cmp_p): New function.
        (noce_convert_multiple_sets_1): Use it for both candidate sequences.
OK.
jeff

Reply via email to