This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Splitting up gcc/omp-low.c?


On 12/10/2015 09:08 AM, Jakub Jelinek wrote:
On Wed, Dec 09, 2015 at 06:23:22PM +0100, Bernd Schmidt wrote:
On 12/09/2015 05:24 PM, Thomas Schwinge wrote:

In addition to that, how about we split up gcc/omp-low.c into several
files?  Would it make sense (I have not yet looked in detail) to do so
along the borders of the several passes defined therein?  Or, can you
tell already that there would be too many cross-references between the
several files to make this infeasible?

It would be nice to get rid of all the code duplication in that file. That
alone could reduce the size by quite a bit, and hopefully make it easier to
read.

What exact code duplication do you mean?

Functions that are near-identical with slight differences, or which have large sections of identical code. scan_omp_task vs scan_omp_parallel, or the various expand_omp_for functions are examples.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]