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: Simple Value Range Propagation


Josef Zlomek wrote:
> > Is it really necessary to add new essentially high-level optimizers at
> the RTL level? This pass would be quite straightforward on tree-ssa.


I agree that it is better to do it on tree-ssa. But I think it is useful
on RTL level too. Some more optimizations may be written by using it and
maybe we could use it for branch predictions too.

There is an SSA VRP algorithm that Diego had plans with (see tree-ssa project page). Especially if Honza's plans to keep the CFG alive, there seems to be little reason to keep such an expensive pass at the RTL level as well.

Also, if I read your patch correctly, you enable vrp at -O1.
How about moving it to -O2, or maybe even -O3, given the 2%
compile time performance degradation vs. only 0.5% runtime
performance improvement you reported?

Gr.
Steven




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