Re: [jbaron@xxxxxxxxxx: [PATCH 0/3] tracepoints: delay argument evaluation]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 20, 2009 at 07:19:18AM -0700, Ian Lance Taylor wrote:
> The short answer is no, there are no such compiler options.  From the
> compiler's perspective, ptr->arg1 is evaluated before the function call,
> so even the fact that the arguments are only used in an unlikely branch
> isn't going to help.  What you want is for the compiler to sink the load
> into the only place where the result of the load is used.  That seems
> like a reasonable optimization, at least when the result is only used in
> an unlikely branch.  I recommend that you open a enhancement request at
> http://gcc.gnu.org/bugzilla with a complete standalone test case.
> 
> Ian

hi,

I've filed bug #40207 asking for this enhancement.

thanks,

-Jason

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux