]> git.ipfire.org Git - thirdparty/gcc.git/commit
ifcvt: cleanup if_info->cond usage in noce_try_cond_zero_arith
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 28 Dec 2025 20:39:13 +0000 (12:39 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 29 Dec 2025 18:27:40 +0000 (10:27 -0800)
commit594f2cbf30f0a36cd7891ec915abf4de08630e49
tree250805c7b4329cdadd709fa3bde059c109b9b0ba
parentf426587cf93e26b645e70abf261cdfcab203c184
ifcvt: cleanup if_info->cond usage in noce_try_cond_zero_arith

Since r16-6332-g2a84a753afcf37, if_info->cond is not used indirectly any more
for creating the conditional. So this patch stops doing the swap and fixes up
so the case where if_info->rev_cond might be null.

gcc/ChangeLog:

* ifcvt.cc (noce_try_cond_zero_arith): Don't swap if_info->cond
but use it directly with if_info->rev_cond.

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