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: [tree-ssa] Remove useless null pointer checks


On Thu, 31 Jul 2003, Andrew Haley wrote:
>  > Would it be worthwhile to express this in GIMPLE, i.e. NEW_EXPR?
>
> But there are many standard library methods that cannot return NULL;
> they either return an object reference or throw an exception.  So
> NEW_EXPR is too specific.

True, but for java methods the optimizers could learn a lot from the
trees.  As in Jeff's my_malloc example.

Jeff


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