]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
ifcvt: cond zero arith: re-expand output pattern [NFC]
authorVineet Gupta <vineetg@rivosinc.com>
Mon, 22 Dec 2025 16:52:33 +0000 (08:52 -0800)
committerVineet Gupta <vineetg@rivosinc.com>
Mon, 22 Dec 2025 17:03:46 +0000 (09:03 -0800)
commit817b03a2fb85cb6a934b06122ca261b07b70b824
treebf1965d4e60af6192fad641b0e94a3851352ee2d
parent65eabc8c6f7ba8f16a6dbab1f6f16efbe87a7546
ifcvt: cond zero arith: re-expand output pattern [NFC]

Current code assigns the new czero insn into XEXP(a, 0) which feels
like a kludge. Instead use expand_simple_binop to recreate it.

gcc/ChangeLog:

* ifcvt.cc (noce_try_cond_zero_arith): Use expand_simple_binop
to re-expand the final pattern.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
gcc/ifcvt.cc