https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113727
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-03-19 --- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. (In reply to David Binderman from comment #6) > As expected: > > trunk.20210101 $ git bisect good 35b5bb475375dba4 > 6decda1a35be5764101987c210b5693a0d914e58 is the first bad commit > commit 6decda1a35be5764101987c210b5693a0d914e58 > Author: Richard Biener <rguent...@suse.de> > Date: Thu Oct 12 11:34:57 2023 +0200 > > tree-optimization/111779 - Handle some BIT_FIELD_REFs in SRA yes this seems very much the change which caused the reduced testcase even. Since if we change the bitfields to non bitfields, things start to work and ``` if (as.au) ``` is changed to: ``` if ((BIT_FIELD_REF <as, 8, 0> & 31) != 0) ``` by fold. If we add: ``` int t = as.au; ``` Right before that if statemtent things start to work too.