Re: [PATCH 1/2] gimple-lim: Reuse boolean var when moving PHI

2024-11-30 Thread Richard Biener
> Am 01.12.2024 um 03:00 schrieb Andrew Pinski : > > While looking into PR 117859, I noticed that LIM > sometimes would produce `bool_var2 = bool_var1 != 0` instead > of just using bool_var2. This patch allows LIM to reuse bool_var1 > in the place where bool_var2 was going to be used. > > Boo

[PATCH 1/2] gimple-lim: Reuse boolean var when moving PHI

2024-11-30 Thread Andrew Pinski
While looking into PR 117859, I noticed that LIM sometimes would produce `bool_var2 = bool_var1 != 0` instead of just using bool_var2. This patch allows LIM to reuse bool_var1 in the place where bool_var2 was going to be used. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: *