This is the mail archive of the gcc-help@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: Question about -ftree-* optimizations in -O1


On 06/18/2016 06:10 AM, Jiaqi Tan wrote:
Thank you for the replies!

In that case, can I assume that the switches that don't begin with
"-ftree" work on the lower level RTL IR?
Generally, yes.


Also, out of curiousity, are there any optimizations that require the
lower level IR in order to work?
Register allocation, low level jump optimization, addressing mode optimizations, etc. Essentially anything closely related to generating code for the target processor is handled at the lower level (RTL) IL.

Things which are largely independent of the target are handled at the higher level IL (trees/gimple).


Jeff


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