Skip to content

Commit ca8c795

Browse files
committed
Address review comment
1 parent 6bc72be commit ca8c795

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9280,10 +9280,10 @@ SDValue RISCVTargetLowering::lowerSELECT(SDValue Op, SelectionDAG &DAG) const {
92809280
}
92819281
}
92829282

9283-
auto getCost = [&](APInt Delta, APInt Addend) {
9283+
auto getCost = [&](const APInt &Delta, const APInt &Addend) {
92849284
const int DeltaCost = RISCVMatInt::getIntMatCost(
92859285
Delta, Subtarget.getXLen(), Subtarget, /*CompressionCost=*/true);
9286-
// Dos the addend folds into an ADDI
9286+
// Does the addend folds into an ADDI
92879287
if (Addend.isSignedIntN(12))
92889288
return DeltaCost;
92899289
const int AddendCost = RISCVMatInt::getIntMatCost(

0 commit comments

Comments
 (0)