Re: [PATCH] phiopt: Fix value_replacement for middle bb having phi nodes [PR118922]

2025-03-09 Thread Richard Biener
> Am 09.03.2025 um 18:11 schrieb Andrew Pinski : > > After r12-5300-gf98f373dd822b3, value_replacement would be able to look at > the > following cfg structure: > ``` > [local count: 1014686024]: > if (h_6 != 0) >goto ; [94.50%] > else >goto ; [5.50%] > > [local count: 11486353

[PATCH] phiopt: Fix value_replacement for middle bb having phi nodes [PR118922]

2025-03-09 Thread Andrew Pinski
After r12-5300-gf98f373dd822b3, value_replacement would be able to look at the following cfg structure: ``` [local count: 1014686024]: if (h_6 != 0) goto ; [94.50%] else goto ; [5.50%] [local count: 114863530]: # h_6 = PHI <0(4), 1(5)> [local count: 1073741824]: # f_8 = P