Skip to content

Commit df802a3

Browse files
committed
Minor comments
Change-Id: I9ce62da8405a08ece5e36c7e1ea0bb93e6f0b6c4
1 parent 55f3c72 commit df802a3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,9 @@ InstructionCost ARMTTIImpl::getArithmeticInstrCost(
14621462
// the compiler will attempt to vectorize as well as using
14631463
// scalar (S/U)MLAL operations. This is in cases where we have
14641464
// the pattern ext(mul(ext(i16), ext(i16))) we find
1465-
// that generated codegen performs better when only using (S/U)MLAL scalar
1465+
// that codegen performs better when only using (S/U)MLAL scalar
14661466
// ops instead of trying to mix vector ops with (S/U)MLAL ops. We therefore
1467-
// check if a mul instruction is used in a SMLAL pattern.
1467+
// check if a mul instruction is used in a (U/S)MLAL pattern.
14681468
auto MulInDSPMLALPattern = [&](const Instruction *I, unsigned Opcode,
14691469
Type *Ty) -> bool {
14701470
if (!ST->hasDSP())
@@ -1487,9 +1487,7 @@ InstructionCost ARMTTIImpl::getArithmeticInstrCost(
14871487
return isa<ZExtInst>(V) || isa<SExtInst>(V);
14881488
};
14891489
auto IsExtensionFromHalf = [&, IsExtInst](const Value *V) -> bool {
1490-
if (IsExtInst(V))
1491-
return cast<Instruction>(V)->getOperand(0)->getType()->isIntegerTy(16);
1492-
return false;
1490+
return cast<Instruction>(V)->getOperand(0)->getType()->isIntegerTy(16);
14931491
};
14941492

14951493
// We check the arguments of the instruction to see if they're extends

0 commit comments

Comments
 (0)