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]

Re: Store motion related questions



> 1. Why would these failures only, and consistently, happen at -O3.  Do
>   we not try to simplify floating point values at -O2?

Right, O3 has the effect of turning functions in these test
cases into inline code, which gets optimized by the compiler
doing the whole calculation and just returning the answer
(not merely the answer of the arithmetic problem, just abort
or exit 0!) .  In these cases the calculation involves evaluating
a constant expression and comparing with aonther constant.
Without the inlining, the constant expressions don't occur at O2.


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