[Bug tree-optimization/119299] Jump followed by jump not optimized.
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 14 21:36:15 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119299
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to AK from comment #0)
...
> https://godbolt.org/z/3xh6Mxq4j
FYI,
https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/condjmp/gcc-16?ref_type=heads
generates:
.globl g1
.type g1, @function
g1:
.LFB0:
.cfi_startproc
movl %edi, %eax
orl $1, %eax
cmpl $5, %eax
je f
cmpl $1, %edi
jbe f
ret
.cfi_endproc
.LFE0:
.size g1, .-g1
.p2align 4
.globl g2
.type g2, @function
g2:
.LFB1:
.cfi_startproc
testl $-6, %edi
je f
ret
.cfi_endproc
More information about the Gcc-bugs
mailing list