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] Devirtualization dump functions fix


On Thu, Jun 26, 2014 at 04:27:49PM +0200, Martin LiÅka wrote:
> >>Well yes - it is of course similar broken in spirit but at least a lot
> >>simpler ;)  I'd put a comment there why we do check g for NULL.
> >But it increases overhead, there are hundreds of gimple_location calls
> >and most of them will never pass NULL.  Can't you simply
> >do what you do in the inline here in the couple of spots where
> >the stmt might be NULL?
> Sure, do you have any suggestion how should be called such function?
> Suggestion: gimple_location_or_unknown ?

gimple_location_safe or gimple_safe_location?

	Jakub


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