[all-commits] [llvm/llvm-project] f1b1bc: [RISCV] Replace two calls to getMinRVVVectorSizeIn...
Philip Reames via All-commits
all-commits at lists.llvm.org
Fri Jun 24 12:07:49 PDT 2022
Author: Philip Reames <preames at rivosinc.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
[RISCV] Replace two calls to getMinRVVVectorSizeInBits with getRealMinVLen [nfc]
This doesn't change behavior, it just makes it slightly more obvious what's
going on. Note that getRealMinVLen is always >= getMinRVVVectorSizeInBits.
The first case is a bit tricky, as you have to know that
getMinRVVVectorSizeInBits returns 0 when not set, and thus is equivalent
to the else value clause. The new code structure makes it more obvious we
return 0 unless using RVV for fixed length vectors.
More information about the All-commits