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 part of pr25505


On Thu, 2006-08-31 at 14:48 -0400, Daniel Berlin wrote:
> > Ahh - got it.  So you're suggesting that I fix the previous logic, too.
> >  I was a bit hesitant because I wasn't clear on what the LHS could be
> > that wasn't a "simple decl", and so I didn't feel confident rewriting
> > this portion.
> 
> Yeah, it is a bit confusing as to what FOR_EACH_SSA_DEF_OPERAND will
> hand you but, AFAIK, it will only hand you SSA_NAMES.
> 

It shouldn't be.  In valid, renamed, up-to-date stmt's,
FOR_EACH_SSA_*_OPERAND can *only* return SSA_NAMEs.  Non-ssa names can
only occur when the stmt is not up to date, or before ssa renaming has
taken place.  

The operand cache exists only to access SSA_NAMEs easily. You should
never get anything else in an up-to-date stmt.

Andrew



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