Re: [PATCH v3 2/2] phiopt: Use rewrite_to_defined_overflow in move_stmt [PR116938]

2025-05-08 Thread Richard Biener
On Thu, May 8, 2025 at 6:08 AM Andrew Pinski wrote: > > As mentioned previously the rewrite in move_stmt should be > using gimple_needing_rewrite_undefined/rewrite_to_defined_unconditional > instead of just rewriting the VCE. > This moves move_stmt over to those APIs. > > A few testcases needed to

[PATCH v3 2/2] phiopt: Use rewrite_to_defined_overflow in move_stmt [PR116938]

2025-05-07 Thread Andrew Pinski
As mentioned previously the rewrite in move_stmt should be using gimple_needing_rewrite_undefined/rewrite_to_defined_unconditional instead of just rewriting the VCE. This moves move_stmt over to those APIs. A few testcases needed to be updated due to ABS_EXPR rewrite that happens. Bootstrapped an