Re: [PATCH 2/2] VN: Don't recurse on for the same value of `a != 0` [PR117859]

2024-11-30 Thread Richard Biener
> Am 01.12.2024 um 02:59 schrieb Andrew Pinski : > > Like r15-5063-g6e84a41622f56c, but this is for the `a != 0` case. > After adding vn_valueize to the handle the `a ==/!= 0` case > of insert_predicates_for_cond, it would go into an infinite loop > as the Value number for a could be the same

[PATCH 2/2] VN: Don't recurse on for the same value of `a != 0` [PR117859]

2024-11-30 Thread Andrew Pinski
Like r15-5063-g6e84a41622f56c, but this is for the `a != 0` case. After adding vn_valueize to the handle the `a ==/!= 0` case of insert_predicates_for_cond, it would go into an infinite loop as the Value number for a could be the same as what it is for the whole expression. This avoids that recursi