[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
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1b1bcdbd4b405876577693f402d1787ca6a2985
https://github.com/llvm/llvm-project/commit/f1b1bcdbd4b405876577693f402d1787ca6a2985
Author: Philip Reames <preames at rivosinc.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Log Message:
-----------
[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
mailing list