public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/115369] New: ifcvt failed to condition elimination for__builtin_mul_overflow
@ 2024-06-06 7:49 liuhongt at gcc dot gnu.org
2024-06-07 0:52 ` [Bug rtl-optimization/115369] ifcvt failed to condition elimination for __builtin_mul_overflow pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2024-06-06 7:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115369
Bug ID: 115369
Summary: ifcvt failed to condition elimination
for__builtin_mul_overflow
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: liuhongt at gcc dot gnu.org
Target Milestone: ---
int
foo (unsigned a, unsigned b, unsigned d, unsigned e, int* p)
{
unsigned int r;
int c = __builtin_mul_overflow (a, b, &r);
d += c;
return c ? d : e;
}
(jump_insn 14 13 47 2 (set (pc)
(if_then_else (eq (reg:CCO 17 flags)
(const_int 0 [0]))
(label_ref 17)
(pc))) "/app/example.c":5:13 1212 {*jcc}
(expr_list:REG_DEAD (reg:CCO 17 flags)
(int_list:REG_BR_PROB 536868 (nil)))
-> 17)
(note 47 14 17 3 [bb 3] NOTE_INSN_BASIC_BLOCK)
; pc falls through to BB 5
(code_label 17 47 40 4 3 (nil) [1 uses])
(note 40 17 29 4 [bb 4] NOTE_INSN_BASIC_BLOCK)
(insn 29 40 30 4 (parallel [
(set (reg/v:SI 105 [ e ])
(plus:SI (reg/v:SI 104 [ d ])
(const_int 1 [0x1])))
(clobber (reg:CC 17 flags))
]) "/app/example.c":6:7 272 {*addsi_1}
(expr_list:REG_DEAD (reg/v:SI 104 [ d ])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(nil))))
(code_label 30 29 31 5 4 (nil) [0 uses])
(note 31 30 36 5 [bb 5] NOTE_INSN_BASIC_BLOCK)
(insn 36 31 37 5 (set (reg/i:SI 0 ax)
(reg/v:SI 105 [ e ])) "/app/example.c":8:1 85 {*movsi_internal}
(expr_list:REG_DEAD (reg/v:SI 105 [ e ])
(nil)))
(insn 37 36 0 5 (use (reg/i:SI 0 ax)) "/app/example.c":8:1 -1
(nil))
The ce2 dump looks quite simple, not sure why it failed.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug rtl-optimization/115369] ifcvt failed to condition elimination for __builtin_mul_overflow
2024-06-06 7:49 [Bug rtl-optimization/115369] New: ifcvt failed to condition elimination for__builtin_mul_overflow liuhongt at gcc dot gnu.org
@ 2024-06-07 0:52 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-07 0:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115369
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Target|x86_64-*-* i?86-*-* |x86_64-*-* i?86-*-*
| |aarch64-*-*
Ever confirmed|0 |1
Last reconfirmed| |2024-06-07
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Happens on aarch64 also.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-07 0:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06 7:49 [Bug rtl-optimization/115369] New: ifcvt failed to condition elimination for__builtin_mul_overflow liuhongt at gcc dot gnu.org
2024-06-07 0:52 ` [Bug rtl-optimization/115369] ifcvt failed to condition elimination for __builtin_mul_overflow pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).