This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rtlopt merge part 8 - webizer pass
> Jan Hubicka <jh@suse.cz> writes:
>
> > + Simple optimization pass that splits independent uses of each
> > + pseudo increasing effect of other optimizations. This can improve
> > + effect of the other transformation, such as CSE or register
> > + allocation. Its source files are @file{web.c}.
>
> You have some English grammar problems here. The first sentence has
> no main verb. The second sentence largely duplicates the first, but
> with problematic number agreement.
>
> I would write this paragraph as
>
> Web construction is a simple pass that splits up independent uses of
> each pseudo register. This allows other passes, such as CSE and
> hard register allocation, to do a better job.
>
> > + The option @option{-dZ} causes a debugging dump of the RTL code
> > + after this pass. This dump file's name is made by appending
> > + @samp{.web} to the input file name.
>
> This paragraph is fine.
>
> > Optimize yet more. @option{-O3} turns on all optimizations specified by
> > ! @option{-O2} and also turns on the @option{-finline-functions}, @option{-fweb}
> > ! and @option{-frename-registers} options.
>
> Needs word wrapping.
>
> Why is this optimization only enabled at -O3?
Fri Feb 7 19:53:35 CET 2003 Jan Hubicka <jh@suse.cz>
* passes.texi (web construction): Document.
* invoke.texi (-O3): Document that -fweb is enabled.
Index: passes.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/passes.texi,v
retrieving revision 1.18
diff -c -3 -p -r1.18 passes.texi
*** passes.texi 27 Jan 2003 10:30:11 -0000 1.18
--- passes.texi 7 Feb 2003 18:53:13 -0000
*************** The option @option{-dG} causes a debuggi
*** 351,356 ****
--- 351,368 ----
this pass. This dump file's name is made by appending @samp{.bypass}
to the input file name.
+ @cindex web construction
+ @item
+ Web construction is a simple pass that splits up independent uses of
+ each pseudo register. This allows other passes, such as CSE and
+ hard register allocation, to do a better job.
+ Its source files are @file{web.c}.
+
+ @opindex dZ
+ The option @option{-dZ} causes a debugging dump of the RTL code after
+ this pass. This dump file's name is made by appending @samp{.web} to
+ the input file name.
+
@item
@opindex frerun-cse-after-loop
If @option{-frerun-cse-after-loop} was enabled, a second common
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.234
diff -c -3 -p -r1.234 invoke.texi
*** invoke.texi 4 Feb 2003 01:27:46 -0000 1.234
--- invoke.texi 7 Feb 2003 18:53:14 -0000
*************** invoking @option{-O2} on programs that u
*** 3490,3497 ****
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified by
! @option{-O2} and also turns on the @option{-finline-functions} and
! @option{-frename-registers} options.
@item -O0
@opindex O0
--- 3494,3501 ----
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified by
! @option{-O2} and also turns on the @option{-finline-functions},
! @option{-fweb} and @option{-frename-registers} options.
@item -O0
@opindex O0