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: Difference between two optimization settings


Thomas Heinz <thomasheinz@gmx.net> writes:

> Do you (or someone else) know how to enable only constant propagation + 
> constant folding in an -O0 optimization setting?

gcc does not support that.

> I guess it's necessary to tweak the code, isn't it?
> If so, how much effort would it be?

It would be non-trivial.  The CCP pass in gcc uses SSA form.  With -O0
SSA form is not generated.

Ian


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