Paolo Bonzini wrote:
At a wild guess, maybe strip_useless_type_conversions() is doing something Bad.Almost there. It looks like strip_useless_type_conversions is not used, and then something Bad happens.
Thank you Andrew and Paolo for your quick answers. I have made a report for this bug (#29753).
I will test your patch tomorrow. Best regards, Ricardo.