[PATCH] D148834: [RISCV][InsertVSETVLI] Avoid VL toggles for extractelement patterns
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 21 10:03:38 PDT 2023
asb added a comment.
Left a very minor stylistic comment. LGTM for what it's worth, but this needs a review from someone more active in the RVV space.
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:815
+ switch (LMUL) {
+ default: break;
+ case LMUL_1: return true;
----------------
Would it be better to change this to case `LMUL_RESERVED: llvm_unreachable("reserved LMUL value")` so `-Wswitch` will pick up if the enumeration is expanded.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148834/new/
https://reviews.llvm.org/D148834
More information about the llvm-commits
mailing list