public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] tree-optimization/106365 - DSE of LEN_STORE and MASK_STORE
Date: Sat, 30 Jul 2022 20:45:54 -0600	[thread overview]
Message-ID: <f18f84e9-4ed2-d780-1192-fd0f27d20610@gmail.com> (raw)
In-Reply-To: <20220721090553.6DCFD13A1B@imap2.suse-dmz.suse.de>



On 7/21/2022 3:05 AM, Richard Biener via Gcc-patches wrote:
> The following enhances DSE to handle LEN_STORE (optimally) and
> MASK_STORE (conservatively).
>
> Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
> Kewen is testing on powerpc.  Handling MASK_STORE_LANES in
> a similar way to MASK_STORE is probably possible but I couldn't
> figure a way to generate one for testing.  STORE_LANES is
> probably handled already since it's ECF_CONST.
>
> 	PR tree-optimization/106365
> 	* tree-ssa-dse.cc (initialize_ao_ref_for_dse): Handle
> 	LEN_STORE, add mode to initialize a may-def and handle
> 	MASK_STORE that way.
> 	(dse_optimize_stmt): Query may-defs.  Handle internal
> 	functions LEN_STORE and MASK_STORE similar to how
> 	we handle memory builtins but without byte tracking.
LGTM.  Obviously if you can massage the PR into a testcase, it's even 
better :-)

jeff


      reply	other threads:[~2022-07-31  2:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21  9:05 Richard Biener
2022-07-31  2:45 ` Jeff Law [this message]

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=f18f84e9-4ed2-d780-1192-fd0f27d20610@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=gcc-patches@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: link
Be 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).