public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amacleod at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114151] [14 Regression] weird and inefficient codegen and addressing modes since r14-9193 Date: Wed, 13 Mar 2024 17:37:57 +0000 [thread overview] Message-ID: <bug-114151-4-w47l8nGFev@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114151-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114151 --- Comment #23 from Andrew Macleod <amacleod at redhat dot com> --- Created attachment 57686 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57686&action=edit another patch (In reply to Richard Biener from comment #22) > (In reply to Andrew Macleod from comment #21) > > > > And have that all work with general trees expressions.. That would solve > > much of this for you? > > Yes, I wouldn't mind if range_on_{entry,exit} handle general tree > expressions, > there's enough APIs to be confused with already ;) > > > I promoted range_on_exit and range_on_entry to be part of the API in this patch. This brings valeu_query in line with rangers basic 5 routine API. It also tweaks rangers versions to handle tree expressions. It bootstraps and shows no regressions, with the caveat that I haven't actually tested the usage of range_on_entry and exit with arbitrary trees. As you can see, I didnt change much... so it should work OK. > > > > > > > > > > Interestingly enough we somehow still need the > > > > > > > > > > > hunk of Andrews patch to do it :/ > > > > > > > That probably means there is another call somewhere in the chain with no > > context. However, I will say that functionality is more important than it > > seems. Should have been there from the start :-P. > > Possibly yes. It might be we fill rangers cache with VARYING and when > we re-do the query as a dependent one but with context we don't recompute > it? I also only patched up a single place in SCEV with the context so > I possibly missed some others that end up with a range query, for example > through niter analysis that might be triggered. My guess is the latter. Without a context and with that change, ranger evaluates the definition with the context at the location of the def, then simply uses that value. If anything it is dependent on later changes, the temporal cache should indicate it's out of date and trigger a new fold using current values.
next prev parent reply other threads:[~2024-03-13 17:38 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-28 13:57 [Bug tree-optimization/114151] New: [14 Regression] weird and inefficient codegen and addressing modes since g:a0b1798042d033fd2cc2c806afbb77875dd2909b tnfchris at gcc dot gnu.org 2024-02-28 14:33 ` [Bug tree-optimization/114151] " rguenth at gcc dot gnu.org 2024-02-28 14:36 ` rguenth at gcc dot gnu.org 2024-02-28 16:51 ` tnfchris at gcc dot gnu.org 2024-02-29 7:19 ` rguenther at suse dot de 2024-02-29 18:15 ` amacleod at redhat dot com 2024-03-01 9:37 ` rguenth at gcc dot gnu.org 2024-03-01 15:02 ` [Bug tree-optimization/114151] [14 Regression] weird and inefficient codegen and addressing modes since r14-9193 amacleod at redhat dot com 2024-03-04 7:47 ` rguenth at gcc dot gnu.org 2024-03-06 3:37 ` amacleod at redhat dot com 2024-03-06 7:14 ` rguenth at gcc dot gnu.org 2024-03-06 7:31 ` rguenth at gcc dot gnu.org 2024-03-06 14:57 ` amacleod at redhat dot com 2024-03-06 20:05 ` amacleod at redhat dot com 2024-03-07 8:04 ` rguenth at gcc dot gnu.org 2024-03-07 15:53 ` amacleod at redhat dot com 2024-03-07 20:37 ` law at gcc dot gnu.org 2024-03-08 10:13 ` rguenth at gcc dot gnu.org 2024-03-08 10:22 ` tnfchris at gcc dot gnu.org 2024-03-08 14:10 ` rguenth at gcc dot gnu.org 2024-03-12 9:59 ` rguenth at gcc dot gnu.org 2024-03-12 10:00 ` rguenth at gcc dot gnu.org 2024-03-12 20:41 ` amacleod at redhat dot com 2024-03-13 7:38 ` rguenth at gcc dot gnu.org 2024-03-13 17:37 ` amacleod at redhat dot com [this message] 2024-03-19 12:12 ` cvs-commit at gcc dot gnu.org 2024-03-19 12:16 ` rguenth 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-114151-4-w47l8nGFev@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).