Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4874)

Issue 6941070: [PATCH] Use new dump scheme to emit loop unroll/peel summary info

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by tejohnson
Modified:
9 years, 8 months ago
Reviewers:
richard.guenther, rep.dot.nop, rth
CC:
davidxl, Sharad Singhai, gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -50 lines) Patch
M cfgloop.h View 1 chunk +1 line, -0 lines 0 comments Download
M cfgloop.c View 1 chunk +56 lines, -0 lines 0 comments Download
M dumpfile.c View 1 chunk +3 lines, -1 line 0 comments Download
M loop-unroll.c View 11 chunks +70 lines, -26 lines 0 comments Download
M testsuite/gcc.dg/tree-ssa/cunroll-1.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/cunroll-2.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/cunroll-3.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/cunroll-4.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/cunroll-5.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/loop-1.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/tree-ssa/loop-23.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/unroll_1.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/unroll_2.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/unroll_3.c View 1 chunk +1 line, -1 line 0 comments Download
M testsuite/gcc.dg/unroll_4.c View 1 chunk +1 line, -1 line 0 comments Download
M tree-ssa-loop-ivcanon.c View 5 chunks +32 lines, -12 lines 0 comments Download

Messages

Total messages: 6
tejohnson
This patch adds a few key messages summarizing loop unrolls and peels using the new ...
11 years, 4 months ago (2012-12-18 06:45:02 UTC) #1
rep.dot.nop_gmail.com
On Mon, Dec 17, 2012 at 10:44:59PM -0800, Teresa Johnson wrote: >Index: tree-ssa-loop-ivcanon.c >=================================================================== >--- ...
11 years, 4 months ago (2012-12-20 09:21:27 UTC) #2
tejohnson
On Thu, Dec 20, 2012 at 1:21 AM, Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote: Thanks for your ...
11 years, 4 months ago (2012-12-20 17:20:55 UTC) #3
tejohnson
On Thu, Dec 20, 2012 at 9:20 AM, Teresa Johnson <tejohnson@google.com> wrote: > On Thu, ...
11 years, 4 months ago (2013-01-02 15:55:07 UTC) #4
rth_redhat.com
On 12/17/2012 10:44 PM, Teresa Johnson wrote: > 2012-12-17 Teresa Johnson <tejohnson@google.com> > > * ...
11 years, 4 months ago (2013-01-02 17:54:44 UTC) #5
tejohnson
11 years, 4 months ago (2013-01-03 00:57:54 UTC) #6
On Wed, Jan 2, 2013 at 9:54 AM, Richard Henderson <rth@redhat.com> wrote:

> On 12/17/2012 10:44 PM, Teresa Johnson wrote:
> > 2012-12-17  Teresa Johnson  <tejohnson@google.com>
> >
> >       * dumpfile.c (dump_loc): Print filename with location.
> >       * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
> >         new location_t parameter to emit complete unroll message with
> >         new dump framework.
> >       (canonicalize_loop_induction_variables): Compute loops location
> >         and pass to try_unroll_loop_completely.
> >       * loop-unroll.c (report_unroll_peel): New function.
> >       (peel_loops_completely): Use new dump format with location
> >         for main dumpfile message, and invoke report_unroll_peel on
> success.
> >       (decide_unrolling_and_peeling): Ditto.
> >       (decide_peel_once_rolling): Remove old dumpfile message subsumed
> >         by report_unroll_peel.
> >       (decide_peel_completely): Ditto.
> >       (decide_unroll_constant_iterations): Ditto.
> >       (decide_unroll_runtime_iterations): Ditto.
> >       (decide_peel_simple): Ditto.
> >       (decide_unroll_stupid): Ditto.
> >       * cfgloop.c (get_loop_location): New function.
> >       * cfgloop.h (get_loop_location): Declare.
> >
> >         testsuite/
> >       * gcc.dg/tree-ssa/loop-1.c: Update expected dump message.
> >       * gcc.dg/tree-ssa/loop-23.c: Ditto.
> >       * gcc.dg/tree-ssa/cunroll-1.c: Ditto.
> >       * gcc.dg/tree-ssa/cunroll-2.c: Ditto.
> >       * gcc.dg/tree-ssa/cunroll-3.c: Ditto.
> >       * gcc.dg/tree-ssa/cunroll-4.c: Ditto.
> >       * gcc.dg/tree-ssa/cunroll-5.c: Ditto.
> >       * testsuite/gcc.dg/unroll_1.c:
> >       * testsuite/gcc.dg/unroll_2.c:
> >       * testsuite/gcc.dg/unroll_3.c:
> >       * testsuite/gcc.dg/unroll_4.c:
>
> Ok except,
>
> > -      if (!single_exit (loop))
> > +      if (!(exit = single_exit (loop)))
>
> Avoid nested assignment when its easy, as it is in this case.
>

Thanks, pulled this out and commoned with the duplicate assignment in the
then clause above, retested and committed.

Teresa


>
>
> r~
>



-- 
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b