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: [PATCH] Fix PR optimization/13653


> Presumably the object we care about has TREE_READONLY set?

Yes (I already copy-pasted it in a previous message in this thread).

> But it's value varies from one iteration to the next (seems to me that
> if the value does not vary, then it could not have been a GIV).

It's a variable created at each loop iteration in an inlined constructor.

> Right.  And presumably that's what's happening in this case -- ie, we
> have a reg which is set by the initialization in a loop and we're
> somehow determining that the initialization sequence looks like a GIV.
> And we're doing this even though we've set TREE_READONLY on the
> object.  Right?

Yes, RTX_UNCHANGING_P is not taken into account when determining if a reg is 
a GIV.

-- 
Eric Botcazou


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