Re: [PATCH] phiopt: Handle bool in two_value_replacement [PR796232]

2020-12-05 Thread Richard Biener
On December 5, 2020 10:14:49 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >The following patch improves code generation on the included testcase >by >enabling two_value_replacement on booleans. It does that only for >arg0/arg1 >values that conditional_replacement doesn't handle, and only does it if

[PATCH] phiopt: Handle bool in two_value_replacement [PR796232]

2020-12-05 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch improves code generation on the included testcase by enabling two_value_replacement on booleans. It does that only for arg0/arg1 values that conditional_replacement doesn't handle, and only does it if not in the early phiopt pass, because conditional_replacement isn't done