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] Fix PR24574


Hi,

On Wed, 13 Jul 2016, Richard Biener wrote:
> The following adds the ability to transform
> 
>  if (x != 0)
>    x = x / 10;
> 
> to
> 
>  x = x / 10;
> 
> as requested by PR.  Plus it adds some more ops where such transform
> is possible.

In the bugzilla, you said,

> Only for -Os, it's better to avoid the expensive division otherwise.

But the patch seems to apply the transform irrespective of -Os; is that
deliberate?  (fwiw I agree with your bugzilla comment above)

Thanks.
Alexander


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