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-ssa] string builtins strikes back


> In message <20031215233133.GB19896@atrey.karlin.mff.cuni.cz>, Jan Hubicka write
> s:
>  >> On Thu, Dec 11, 2003 at 07:11:49PM +0100, Jan Hubicka wrote:
>  >> > What would be best to cope with this?
>  >> 
>  >> Re-gimplify.
>  >
>  >You mean re-gimplify after each fold call? (or just fold_builtins)  Also
>  >we probably need to extend fold_stmt API somewhat to allow it
>  >introducing several statements instead of one (passing around block
>  >iterator and returning pointer to first simplified?)
> I disagree with Richard's recommendation.  If the folder gives us back
> something that is not gimple, then we shouldn't use it -- at least not
> at this time, we might want to re-gimplify such things in some cases.
> 
> Rather than build the bits to re-gimplify, I'd first look much closer at
> why the folder gave us back something which was not gimple.

See original mail.  THe problem comes from string strlen folder that
looks up for argument that contains a cast, casts is into sizetype and
cast it back.  We end up with nested expression containing multiple
casts.

Honza
> 
> jeff
> 


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