From: Tom de Vries <Tom_deVries@mentor.com>
To: Richard Biener <rguenther@suse.de>, Jan Hubicka <hubicka@ucw.cz>
Cc: <gcc-patches@gcc.gnu.org>
Subject: Re: Do not give realistic estimates for loop with array accesses
Date: Thu, 07 Apr 2016 14:52:00 -0000 [thread overview]
Message-ID: <5706742C.1070101@mentor.com> (raw)
In-Reply-To: <alpine.LSU.2.11.1603301436071.13384@t29.fhfr.qr>
On 30/03/16 14:36, Richard Biener wrote:
> On Wed, 30 Mar 2016, Jan Hubicka wrote:
>
>>> > >
>>> > >You are only changing one place in this file.
>> >
>> >You are right. I am attaching the updated patch which I am re-testing now.
>>> > >
>>> > >The vectorizer already checks this (albeit indirectly):
>>> > >
>>> > > HOST_WIDE_INT max_niter
>>> > > = max_stmt_executions_int (LOOP_VINFO_LOOP (loop_vinfo));
>>> > > if ((LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo)
>>> > > && (LOOP_VINFO_INT_NITERS (loop_vinfo) < vectorization_factor))
>>> > > || (max_niter != -1
>>> > > && (unsigned HOST_WIDE_INT) max_niter < vectorization_factor))
>>> > > {
>>> > > if (dump_enabled_p ())
>>> > > dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
>>> > > "not vectorized: iteration count smaller than "
>>> > > "vectorization factor.\n");
>>> > > return false;
>>> > > }
>> >
>> >Yes, but one tests only vectorization_factor and other min_profitable_estimate
>> >which probably should be greater than vectorization_factor.
>> >
>> >The check above should therefore become redundant. My reading of the code is
>> >that min_profiltable_estimate is computed after the check above, so it is
>> >probably an useful shortcut and the message is also bit more informative.
>> >I updated the later test to use max_niter variable once it is computed.
>> >
>> >OK with those changes assuming testing passes?
> Ok.
This patch caused PR70577 - 'tree-ssa/prefetch-5.c scan-tree-dump-times
aprefetch failures' ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70577 ).
Thanks,
- Tom
next prev parent reply other threads:[~2016-04-07 14:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 11:02 Jan Hubicka
2016-03-30 12:09 ` Richard Biener
2016-03-30 12:36 ` Jan Hubicka
2016-03-30 12:49 ` Richard Biener
2016-03-30 18:52 ` Bernhard Reutner-Fischer
2016-04-07 14:52 ` Tom de Vries [this message]
2016-03-30 13:50 ` Bin.Cheng
2016-03-30 14:41 ` Jan Hubicka
2016-03-30 15:30 ` Bin.Cheng
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=5706742C.1070101@mentor.com \
--to=tom_devries@mentor.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=rguenther@suse.de \
/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).