https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122486

--- Comment #4 from Robin Dapp <rdapp at gcc dot gnu.org> ---
> Would it be possible to skip such optimization/canonicalization, as Clang
> already does? In practice, an exact match is sometimes essential for
> programming specific hardware effectively.

Could you share a code snippet or a specific problem you're trying to solve?
The idea is that the compiler takes care of optimal vsetvl placement.
It sounds as if you want to emit a particular SEW, LMUL (to be used by another
instruction?) and not just compute the vector length?

Reply via email to