https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121997
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2025-09-19 Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Yes, we're basically pattern-matching how clz, etc. intrinsics are actually open coded. If new variants are discovered that are actually used it should be reasonable to extend this. Of course the ARRAY_REF match could be improved by a helper detecting "effective" ARRAY_REFs as well. This might be also helpful elsewhere.