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 target/94145] Longcalls mis-optimize loading the function address Date: Thu, 12 Mar 2020 08:48:26 +0000 [thread overview] Message-ID: <bug-94145-4-qLnD0mZkrb@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94145-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94145 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- So what prevents GIMPLE from doing the transform to an indirect call and hoisting the call address computation out of the loop? I fear your volatile marking is papering over an entirely different issue. Of course it will likely work as a workaround since nobody is going to do that above mentioned dance. Maybe code like void foo(); void bar() { void (volatile fn*)() = foo; void (fn2 *)() = fn; for (int i = 0; i<10000; ++i) fn2(); } will expose the same "issue" whatever it really is?
next prev parent reply other threads:[~2020-03-12 8:48 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-11 16:00 [Bug target/94145] New: " meissner at gcc dot gnu.org 2020-03-11 18:27 ` [Bug target/94145] " meissner at gcc dot gnu.org 2020-03-11 21:33 ` segher at gcc dot gnu.org 2020-03-11 21:35 ` segher at gcc dot gnu.org 2020-03-11 22:50 ` amodra at gmail dot com 2020-03-11 22:50 ` amodra at gmail dot com 2020-03-12 8:48 ` rguenth at gcc dot gnu.org [this message] 2020-03-12 13:00 ` amodra at gmail dot com 2020-03-12 13:17 ` rguenth at gcc dot gnu.org 2020-03-12 13:34 ` amodra at gmail dot com 2020-03-12 13:57 ` rguenth at gcc dot gnu.org 2020-03-12 15:38 ` segher at gcc dot gnu.org 2020-03-27 22:16 ` cvs-commit at gcc dot gnu.org 2020-05-01 1:18 ` cvs-commit at gcc dot gnu.org 2020-05-01 1:19 ` amodra at gmail dot com
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-94145-4-qLnD0mZkrb@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).