diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-03-25 14:20:38 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-03-25 14:20:47 -0700 |
commit | 5797feaa55bceda38ed797de7ad90ecd6d2ee222 (patch) | |
tree | a7b2205f49cb36b601a0ab190d2ade8a984e1f20 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | |
parent | bba25a9cd827f9ee822616cc194206ffb7c0a49b (diff) | |
download | llvm-5797feaa55bceda38ed797de7ad90ecd6d2ee222.zip llvm-5797feaa55bceda38ed797de7ad90ecd6d2ee222.tar.gz llvm-5797feaa55bceda38ed797de7ad90ecd6d2ee222.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions