]> git.ipfire.org Git - thirdparty/gcc.git/commit
ifcvt: Allow non-comparisons against 0 in noce_try_cond_zero_arith
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 28 Dec 2025 20:50:12 +0000 (12:50 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 29 Dec 2025 18:27:41 +0000 (10:27 -0800)
commitcc515677b95d292d619c1fe6748a0d91385ca3ff
treef5a63ffca51d38c0151ad4883fe03ebff0d93e0b
parent92f2a86794ad88d773b102c753e13be1b6f05ff9
ifcvt: Allow non-comparisons against 0 in noce_try_cond_zero_arith

Like r16-6332-g2a84a753afcf37 but instead of just allowing any comparisons
against 0, this allows all comparisons. I mentioned this in
https://gcc.gnu.org/pipermail/gcc-patches/2025-December/704463.html.

gcc/ChangeLog:

* ifcvt.cc (noce_try_cond_zero_arith): Remove restriction on comparison
against 0.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/ifcvt.cc