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: -funswitch-loops not effective?


On Tue, 18 Jan 2005 11:57:30 -0800, Mark Mitchell <mark@codesourcery.com> wrote:
> Richard Guenther wrote:
> 
> > So to take this one step further - a Flag object passed as const Flag&
> > cannot have its flag member changed in any way, and as such not by
> > side-effects of a called function?  If so, why don't we model this
> > invariant and exploit it in the optimizers?
> 
> There's no good reason; we should do that.  It's definitely a valid
> optimization.

This is PR19507 and maybe a C++ frontend issue, though (or maybe
because) I could not come up with a C testcase that models the same
semantics.

Richard.


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