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

Issue 5263051: [pph] Refactor Vectors and Chains (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by Lawrence Crowl
Modified:
11 years, 10 months ago
Reviewers:
Diego Novillo
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/pph/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -109 lines) Patch
M gcc/cp/pph.c View 3 chunks +22 lines, -10 lines 0 comments Download
M gcc/cp/pph-streamer.h View 1 chunk +1 line, -0 lines 0 comments Download
M gcc/cp/pph-streamer.c View 1 chunk +3 lines, -1 line 0 comments Download
M gcc/cp/pph-streamer-in.c View 3 chunks +5 lines, -4 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 10 chunks +81 lines, -82 lines 0 comments Download
M gcc/cp/pt.c View 1 chunk +1 line, -3 lines 0 comments Download
M gcc/testsuite/g++.dg/pph/x4tmplfuncinln.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M gcc/testsuite/g++.dg/pph/x4tmplfuncninl.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M gcc/testsuite/g++.dg/pph/z4tmplfuncinln.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M gcc/testsuite/g++.dg/pph/z4tmplfuncninl.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 2
Lawrence Crowl
Factor the vector and chain output routines to remove boolean control parameters. The functions pph_out_tree_vec_1 ...
12 years, 6 months ago (2011-10-17 02:09:08 UTC) #1
Diego Novillo
12 years, 6 months ago (2011-10-17 12:33:05 UTC) #2
On Sun, Oct 16, 2011 at 22:09, Lawrence Crowl <crowl@google.com> wrote:
> Factor the vector and chain output routines to remove boolean control
> parameters. The functions pph_out_tree_vec_1 and pph_out_chain_1 split
> their conditional parts of their implementation into their use cases,
> calling each other as needed.
>
> pph_out_tree_vec - nothing special
> pph_out_tree_vec_unchain - unchaining
> pph_out_mergeable_tree_vec - merging, unchaining, reversing
> pph_out_tree_vec_filtered - filtering
> pph_out_chain - nothing special
> pph_out_chain_filtered - filtering
> pph_out_mergeable_chain_filtered - merging, unchaining, reversing, filtering

But, you are duplicating code that the previous patch had explicitly
commonized.  Why?  It's easier to keep the core streaming logic in one
function, to have a single point of debugging when dealing with sync
problems.


> This change fixes an ordering bug, but now causes an ICE to surface,
> which will be addressed later.

What ordering bug?


Diego.
Sign in to reply to this message.

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