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: Finding out what backend instruction pattern matches instruction


Ok, I guess I will  try setting the length attribute as you describe and see if it is called at all before hard registers are allocated. Then, I can trace any usage to see if its important.


---- Ian Lance Taylor <iant@google.com> wrote: 
> Andrew Hutchinson <andrewhutchinson@cox.net> writes:
> 
> > I'm still trying to get my head around length attribute and when/where
> > it is used by gcc. The internal manual is vague to say the least.
> > 
> > If I use the method suggested, will it only ever get evaluated after
> > reload? Or at least only with hard register assignments made?
> 
> Please reply to the mailing list, not just to me.  Thanks.
> 
> I think the length will only ever be evaluated after reload.  In any
> case, it only really matters after reload.  Before reload, you can
> return pretty much anything; it won't matter.
> 
> Ian


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