public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "liuhongt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/115369] New: ifcvt failed to condition elimination for__builtin_mul_overflow Date: Thu, 06 Jun 2024 07:49:49 +0000 [thread overview] Message-ID: <bug-115369-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2024-06-06 7:49 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-06 7:49 liuhongt at gcc dot gnu.org [this message] 2024-06-07 0:52 ` [Bug rtl-optimization/115369] ifcvt failed to condition elimination for __builtin_mul_overflow pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-115369-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).