Re: [PATCH 2/3] gimple: Add assert for code being a comparison in gimple_cond_set_code

2025-05-14 Thread Richard Biener
> Am 14.05.2025 um 03:12 schrieb Andrew Pinski : > > We have code later on that verifies the code is a comparison. So let's > try to catch it earlier. So it is easier to debug where the incorrect code > gets set. > > Bootstrapped and tested on x86_64-linux-gnu. Ok > gcc/ChangeLog: > >*

[PATCH 2/3] gimple: Add assert for code being a comparison in gimple_cond_set_code

2025-05-13 Thread Andrew Pinski
We have code later on that verifies the code is a comparison. So let's try to catch it earlier. So it is easier to debug where the incorrect code gets set. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * gimple.h (gimple_cond_set_code): Add assert of the code being