public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/114190] wrong code with -O2 -fno-dce -fharden-compares -mvpclmulqdq --param=max-rtl-if-conversion-unpredictable-cost=136 Date: Fri, 01 Mar 2024 21:08:52 +0000 [thread overview] Message-ID: <bug-114190-4-DDA9N48dKf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114190-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114190 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-03-01 Component|target |rtl-optimization --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- cmpelim produces: ``` (insn 22 21 486 2 (set (reg:CCZ 17 flags) (compare:CCZ (reg:SI 4 si [orig:111 _21+4 ] [111]) (const_int 0 [0]))) "/app/example.cpp":8:8 discrim 1 7 {*cmpsi_ccno_1} (expr_list:REG_UNUSED (reg:CCZ 17 flags) (nil))) (insn 486 22 466 2 (set (reg:DI 1 dx [353]) (plus:DI (reg/f:DI 7 sp) (const_int 212 [0xd4]))) "/app/example.cpp":8:65 discrim 1 254 {*leadi} (nil)) (insn 466 486 383 2 (set (reg:DI 4 si [354]) (const:DI (plus:DI (symbol_ref:DI ("u") [flags 0x2] <var_decl 0x7fe775410c60 u>) (const_int 1 [0x1])))) "/app/example.cpp":8:65 discrim 1 84 {*movdi_internal} (expr_list:REG_EQUIV (const:DI (plus:DI (symbol_ref:DI ("u") [flags 0x2] <var_decl 0x7fe775410c60 u>) (const_int 1 [0x1]))) (nil))) (insn 383 466 384 2 (set (reg:DI 1 dx [348]) (if_then_else:DI (eq (reg:CCZ 17 flags) (const_int 0 [0])) (reg:DI 1 dx [353]) (reg:DI 4 si [354]))) "/app/example.cpp":8:65 discrim 1 1451 {*movdicc_noc} (expr_list:REG_DEAD (reg:CCZ 17 flags) (expr_list:REG_DEAD (reg:DI 4 si [354]) (nil)))) ``` Which is fine (but note the REG_UNUSED note which was not updated). From pro_and_epilogue's dump: deleting insn with uid = 22. Which is totally bogus; I think someone didn't redo REG_UNUSED notes again.
next prev parent reply other threads:[~2024-03-01 21:08 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-01 12:11 [Bug tree-optimization/114190] New: " zsojka at seznam dot cz 2024-03-01 20:58 ` [Bug target/114190] " pinskia at gcc dot gnu.org 2024-03-01 21:04 ` pinskia at gcc dot gnu.org 2024-03-01 21:08 ` pinskia at gcc dot gnu.org [this message] 2024-03-04 8:10 ` [Bug rtl-optimization/114190] [14 regression] Wrong " rguenth at gcc dot gnu.org 2024-03-04 13:19 ` rguenth at gcc dot gnu.org 2024-03-05 8:02 ` jakub at gcc dot gnu.org 2024-03-05 9:19 ` jakub at gcc dot gnu.org 2024-03-06 8:36 ` cvs-commit at gcc dot gnu.org 2024-03-06 8:37 ` jakub 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-114190-4-DDA9N48dKf@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).