public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/107050] duplicate load of return value when facing multiple branches Date: Tue, 27 Sep 2022 09:20:31 +0000 [thread overview] Message-ID: <bug-107050-4-aNezBMgIHp@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107050-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107050 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |segher at gcc dot gnu.org Last reconfirmed| |2022-09-27 Known to fail| |13.0 Target| |x86_64-*-* Keywords| |missed-optimization Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. It's shrink-wrapping which is duplicating blocks and the load. Before we have 1: NOTE_INSN_DELETED 5: NOTE_INSN_BASIC_BLOCK 2 2: ax:SI=di:SI 4: NOTE_INSN_FUNCTION_BEG 7: flags:CCZ=cmp(ax:SI,0) 8: pc={(flags:CCZ==0)?L27:pc} REG_BR_PROB 536870916 9: NOTE_INSN_BASIC_BLOCK 3 10: ax:SI=[`f'] 11: flags:CCZ=cmp(ax:SI,0) 12: pc={(flags:CCZ==0)?L24:pc} REG_BR_PROB 708669604 13: NOTE_INSN_BASIC_BLOCK 4 14: flags:CCZ=cmp(si:SI,0) 15: pc={(flags:CCZ==0)?L19:pc} REG_BR_PROB 719407028 16: NOTE_INSN_BASIC_BLOCK 5 17: ax:QI=0 18: call [`func_58'] argc:0 REG_EH_REGION 0 19: L19: 20: NOTE_INSN_BASIC_BLOCK 6 21: ax:SI=[`g_286'] 38: pc=L27 39: barrier 24: L24: 25: NOTE_INSN_BASIC_BLOCK 7 26: [`g_286']=0 27: L27: 28: NOTE_INSN_BASIC_BLOCK 8 34: use ax:SI 40: NOTE_INSN_DELETED maybe shrink-wrapping should consider splitting blocks before doing the transform?
next prev parent reply other threads:[~2022-09-27 9:20 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-27 8:53 [Bug rtl-optimization/107050] New: " absoler at smail dot nju.edu.cn 2022-09-27 9:20 ` rguenth at gcc dot gnu.org [this message] 2022-09-27 19:53 ` [Bug rtl-optimization/107050] " segher 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-107050-4-aNezBMgIHp@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).