This is the mail archive of the gcc@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: why are we not using const?



On Jun 28, 2006, at 7:14 PM, Kaveh R. Ghazi wrote:


Notice that the value of the parameter "b" is never changed in the
function body.  Consequently, if the current optimizers cannot figure
that simple cases out (where "b" is not annotated const), then the
optimizers in deficient in that respect.  That is the point.

Oh. With SSA, it does not matter because the dataflow is "done for you"
and there is no different between non const and const variables (static/global
variables is the exception).


-- Pinski


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