Skip to content

Commit 1588e92

Browse files
committed
fix the comments
1 parent 2a43729 commit 1588e92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ RISCVTTIImpl::getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
14621462
return ExtraCost + getRISCVInstructionCost(Opcodes, LT.second, CostKind);
14631463
}
14641464

1465-
// IR Reduction is composed by two vmv and one rvv reduction instruction.
1465+
// IR Reduction is composed by one rvv reduction instruction and vmv
14661466
unsigned SplitOp;
14671467
SmallVector<unsigned, 3> Opcodes;
14681468
switch (IID) {
@@ -1554,7 +1554,9 @@ RISCVTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
15541554
}
15551555
}
15561556

1557-
// IR Reduction is composed by two vmv and one rvv reduction instruction.
1557+
// IR Reduction of or/and is composed by one vmv and one rvv reduction
1558+
// instruction, and others is composed by two vmv and one rvv reduction
1559+
// instruction
15581560
unsigned SplitOp;
15591561
switch (ISD) {
15601562
case ISD::ADD:

0 commit comments

Comments
 (0)