[llvm] 7c4cb0e - Fix build error introduced by 1c722fc
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 11:06:26 PDT 2025
Author: Philip Reames
Date: 2025-04-22T11:05:24-07:00
New Revision: 7c4cb0e8368583bdd48a59b5dd0e9d881cffa3a6
URL: https://github.com/llvm/llvm-project/commit/7c4cb0e8368583bdd48a59b5dd0e9d881cffa3a6
DIFF: https://github.com/llvm/llvm-project/commit/7c4cb0e8368583bdd48a59b5dd0e9d881cffa3a6.diff
LOG: Fix build error introduced by 1c722fc
The change built before merge, but apparently a constness change landed
since I posted this for review.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index c5b0040638d0d..2cea601fb1a02 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -389,8 +389,8 @@ static VectorType *getVRGatherIndexType(MVT DataVT, const RISCVSubtarget &ST,
/// during legalization. Note that processShuffleMasks is not an exact proxy
/// for the algorithm used in LegalizeVectorTypes, but hopefully it's a
/// reasonably close upperbound.
-static InstructionCost costShuffleViaSplitting(RISCVTTIImpl &TTI, MVT LegalVT,
- VectorType *Tp,
+static InstructionCost costShuffleViaSplitting(const RISCVTTIImpl &TTI,
+ MVT LegalVT, VectorType *Tp,
ArrayRef<int> Mask,
TTI::TargetCostKind CostKind) {
assert(LegalVT.isFixedLengthVector() && !Mask.empty() &&
More information about the llvm-commits
mailing list