https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111926
Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org --- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> --- The thing to keep in mind here is that a reasonable uarch should provide efficient access to vlenb. It's an architectural constant. Using vsetvl to get this information also disturbs vl and vtype. So while this transformation may look like an improvement in isolation, it's probably not in real code. So if anyone ever implements this, it definitely needs to be a uarch triggered tuning option.