[LV][NFC] Modify code comments
Reviewed By: jacquesguan Differential Revision: https://reviews.llvm.org/D132093
This commit is contained in:
parent
9181ab9223
commit
eaa539afa1
|
|
@ -1291,7 +1291,7 @@ public:
|
|||
/// Calculate the cost of an extended reduction pattern, similar to
|
||||
/// getArithmeticReductionCost of a reduction with an extension.
|
||||
/// This is the cost of as:
|
||||
/// ResTy vecreduce(ext(Ty A)).
|
||||
/// ResTy vecreduce.opcode(ext(Ty A)).
|
||||
InstructionCost getExtendedReductionCost(
|
||||
unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
|
||||
Optional<FastMathFlags> FMF,
|
||||
|
|
|
|||
|
|
@ -2350,7 +2350,7 @@ public:
|
|||
Optional<FastMathFlags> FMF,
|
||||
TTI::TargetCostKind CostKind) {
|
||||
// Without any native support, this is equivalent to the cost of
|
||||
// vecreduce.op(ext).
|
||||
// vecreduce.opcode(ext(Ty A)).
|
||||
VectorType *ExtTy = VectorType::get(ResTy, Ty);
|
||||
InstructionCost RedCost =
|
||||
thisT()->getArithmeticReductionCost(Opcode, ExtTy, FMF, CostKind);
|
||||
|
|
@ -2365,7 +2365,8 @@ public:
|
|||
VectorType *Ty,
|
||||
TTI::TargetCostKind CostKind) {
|
||||
// Without any native support, this is equivalent to the cost of
|
||||
// vecreduce.add(mul(ext, ext)).
|
||||
// vecreduce.add(mul(ext(Ty A), ext(Ty B))) or
|
||||
// vecreduce.add(mul(A, B)).
|
||||
VectorType *ExtTy = VectorType::get(ResTy, Ty);
|
||||
InstructionCost RedCost = thisT()->getArithmeticReductionCost(
|
||||
Instruction::Add, ExtTy, None, CostKind);
|
||||
|
|
|
|||
Loading…
Reference in New Issue