Re: [PATCH] Fix factor_out_conditional_operation heuristics for constants

2024-09-13 Thread Richard Biener
On Thu, Sep 12, 2024 at 7:20 PM Andrew Pinski wrote: > > While working on a different patch, I noticed the heuristics were not > doing the right thing if there was statements before the NOP/PREDICTs. > (LABELS don't have other statements before them). > > This fixes that oversight which was added

[PATCH] Fix factor_out_conditional_operation heuristics for constants

2024-09-12 Thread Andrew Pinski
While working on a different patch, I noticed the heuristics were not doing the right thing if there was statements before the NOP/PREDICTs. (LABELS don't have other statements before them). This fixes that oversight which was added in r15-3334-gceda727dafba6e. Bootstrapped and tested on x86_64-l