File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments