]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
ifcvt: cond zero arith: opencode helper noce_bbs_ok_for_cond_zero_arith [NFC]
authorVineet Gupta <vineetg@rivosinc.com>
Mon, 22 Dec 2025 16:52:07 +0000 (08:52 -0800)
committerVineet Gupta <vineetg@rivosinc.com>
Mon, 22 Dec 2025 16:52:07 +0000 (08:52 -0800)
commit35b6620f18df4864fd01642512eb5c985d10fe06
tree372fd68821d4e04082c185aceea261c7d917d661
parent799fecc5f3bb3c0b8bd921f29203c750261aaee2
ifcvt: cond zero arith: opencode helper noce_bbs_ok_for_cond_zero_arith [NFC]

This makes the code more readable by eliminating a bunch of pointer
intermediaries which obfuscate if_info items needed later in
noce_try_cond_zero_arith (). And while here add some top level comments
about what cond zero arith actually does.

gcc/ChangeLog:

* ifcvt.cc (noce_bbs_ok_for_cond_zero_arith): Move logic out.
(noce_try_cond_zero_arith): Into here.

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