]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
ifcvt: Move noce_try_cond_zero_arith last
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 23 Dec 2025 21:30:00 +0000 (13:30 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Wed, 24 Dec 2025 01:45:27 +0000 (17:45 -0800)
commitce55e48fc4ae41064b01e3241b17e6434fbaf07a
tree5647118697b46bbd6fe198d4822d1a4bc66181da
parent2680785a6d14d7d78550edb8361f3b47eb5c4cb6
ifcvt: Move noce_try_cond_zero_arith last

I noticed that on x86_64 and aarch64, noce_try_cond_zero_arith
would produce worse code than noce_try_cmove_arith.
So we should do noce_try_cond_zero_arith last instead
of before noce_try_cmove_arith.

Pushed as obvious after bootstrap/test on x86_64-linux-gnu.
Also checked to make sure riscv testcases still work.

gcc/ChangeLog:

* ifcvt.cc (noce_process_if_block): Move noce_try_cond_zero_arith
last.

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