Re: [PATCHv2] Improve factor_out_conditional_operation for conversions and constants

2023-10-24 Thread Richard Biener
On Tue, Oct 24, 2023 at 8:45 AM Andrew Pinski wrote: > > In the case of a NOP conversion (precisions of the 2 types are equal), > factoring out the conversion can be done even if int_fits_type_p returns > false and even when the conversion is defined by a statement inside the > conditional. Since

[PATCHv2] Improve factor_out_conditional_operation for conversions and constants

2023-10-23 Thread Andrew Pinski
In the case of a NOP conversion (precisions of the 2 types are equal), factoring out the conversion can be done even if int_fits_type_p returns false and even when the conversion is defined by a statement inside the conditional. Since it is a NOP conversion there is no zero/sign extending happening