forked from OSchip/llvm-project
[TTI] NFC: Change getVectorSplitCost to return InstructionCost
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D100952
This commit is contained in:
parent
8f6185c713
commit
a8b35e0f52
|
@ -2087,7 +2087,7 @@ public:
|
|||
return RedCost + MulCost + ExtCost;
|
||||
}
|
||||
|
||||
unsigned getVectorSplitCost() { return 1; }
|
||||
InstructionCost getVectorSplitCost() { return 1; }
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
|
|
@ -197,7 +197,7 @@ public:
|
|||
std::function<void(Instruction *, unsigned, APInt, APInt &)>
|
||||
SimplifyAndSetOp) const;
|
||||
|
||||
unsigned getVectorSplitCost() { return 0; }
|
||||
InstructionCost getVectorSplitCost() { return 0; }
|
||||
|
||||
InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
|
||||
ArrayRef<int> Mask, int Index,
|
||||
|
|
Loading…
Reference in New Issue