[PATCH] D158590: [RISCV] Fix assertion of getShuffleCost
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 04:15:49 PDT 2023
ABataev added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:364
// the element type remains the same.
- if (LT.first.isValid() && LT.first != 1 &&
+ if (Mask.size() >= 2 && LT.first.isValid() && LT.first != 1 &&
LT.second.isFixedLengthVector() &&
----------------
!Mask.empty()
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158590/new/
https://reviews.llvm.org/D158590
More information about the llvm-commits
mailing list