[llvm] 96ac1ae - [RISCV] Make DemandedFields::usedVTYPE() const. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 14:49:37 PST 2022
Author: Craig Topper
Date: 2022-12-12T14:49:26-08:00
New Revision: 96ac1aeaf4a4c35faa7bbca7dec9ef13497db216
URL: https://github.com/llvm/llvm-project/commit/96ac1aeaf4a4c35faa7bbca7dec9ef13497db216
DIFF: https://github.com/llvm/llvm-project/commit/96ac1aeaf4a4c35faa7bbca7dec9ef13497db216.diff
LOG: [RISCV] Make DemandedFields::usedVTYPE() const. NFC
Noticed while reviewing D139877.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D139879
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index 3be1ae640330..08430f853df1 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -134,7 +134,7 @@ struct DemandedFields {
bool MaskPolicy = false;
// Return true if any part of VTYPE was used
- bool usedVTYPE() {
+ bool usedVTYPE() const {
return SEW || LMUL || SEWLMULRatio || TailPolicy || MaskPolicy;
}
More information about the llvm-commits
mailing list