[all-commits] [llvm/llvm-project] 5797fe: [RISCV] Reorder checks in RISCVTTIImpl::getGatherS...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Mar 25 14:22:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5797feaa55bceda38ed797de7ad90ecd6d2ee222
https://github.com/llvm/llvm-project/commit/5797feaa55bceda38ed797de7ad90ecd6d2ee222
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-03-25 (Thu, 25 Mar 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/RISCV/fixed-vector-gather.ll
M llvm/test/Analysis/CostModel/RISCV/fixed-vector-scatter.ll
Log Message:
-----------
[RISCV] Reorder checks in RISCVTTIImpl::getGatherScatterOpCost to avoid calling getMinRVVVectorSizeInBits() when V extension is not enabled.
getMinRVVVectorSizeInBits() asserts if the V extension isn't
enabled. So check that gather/scatter is legal first since it
already contains a check for V extension being enabled. It
also already checks getMinRVVVectorSizeInBits for fixed length
vectors so we don't need a check in getGatherScatterOpCost.
More information about the All-commits
mailing list