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: Tree sharing issues...


On Wed, 2003-11-19 at 19:40, law@redhat.com wrote:
> In message <1069288378.22708.2.camel@frodo.toronto.redhat.com>, Diego Novillo w
> rites:
>  
>  >We always rewrite inside an ARRAY_REF.  Consider A[i][j].  Both i and j
>  >will be typically renamed.
> Err, what about when the index is a constant?
> 
Yeah, I had missed that.  In that case, sharing shouldn't be a problem
(like the example Jan posted earlier).  It goes back to following what
get_expr_operands does.  Any tree operand that may end up in def_ops or
use_ops must not be shared.


Diego.


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