Skip to content

Commit e8dd4df

Browse files
authored
[NFC][TTI] Mark getReplicationShuffleCost() as const (llvm#92194)
1 parent 4ea21a0 commit e8dd4df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ class TargetTransformInfo {
13971397
InstructionCost getReplicationShuffleCost(Type *EltTy, int ReplicationFactor,
13981398
int VF,
13991399
const APInt &DemandedDstElts,
1400-
TTI::TargetCostKind CostKind);
1400+
TTI::TargetCostKind CostKind) const;
14011401

14021402
/// \return The cost of Load and Store instructions.
14031403
InstructionCost

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ TargetTransformInfo::getVectorInstrCost(const Instruction &I, Type *Val,
10371037

10381038
InstructionCost TargetTransformInfo::getReplicationShuffleCost(
10391039
Type *EltTy, int ReplicationFactor, int VF, const APInt &DemandedDstElts,
1040-
TTI::TargetCostKind CostKind) {
1040+
TTI::TargetCostKind CostKind) const {
10411041
InstructionCost Cost = TTIImpl->getReplicationShuffleCost(
10421042
EltTy, ReplicationFactor, VF, DemandedDstElts, CostKind);
10431043
assert(Cost >= 0 && "TTI should not produce negative costs!");

0 commit comments

Comments
 (0)