• Home
  • Raw
  • Download

Lines Matching refs:Scale

256   int64_t Scale;  member
280 : BaseGV(nullptr), BaseOffset(0), HasBaseReg(false), Scale(0), in Formula()
385 return Scale != 1 || !BaseRegs.empty(); in isCanonical()
404 Scale = 1; in canonicalize()
417 if (Scale != 1) in unscale()
419 Scale = 0; in unscale()
487 if (Scale != 0) { in print()
489 OS << Scale << "*reg("; in print()
1025 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula()
1375 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument
1379 HasBaseReg, Scale, AccessTy.AddrSpace); in isAMCompletelyFolded()
1388 if (Scale != 0 && HasBaseReg && BaseOffset != 0) in isAMCompletelyFolded()
1393 if (Scale != 0 && Scale != -1) in isAMCompletelyFolded()
1403 if (Scale == 0) in isAMCompletelyFolded()
1414 return !BaseGV && Scale == 0 && BaseOffset == 0; in isAMCompletelyFolded()
1418 return !BaseGV && (Scale == 0 || Scale == -1) && BaseOffset == 0; in isAMCompletelyFolded()
1428 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument
1440 HasBaseReg, Scale) && in isAMCompletelyFolded()
1442 HasBaseReg, Scale); in isAMCompletelyFolded()
1456 assert((F.isCanonical() || F.Scale != 0)); in isAMCompletelyFolded()
1458 F.BaseGV, F.BaseOffset, F.HasBaseReg, F.Scale); in isAMCompletelyFolded()
1465 int64_t BaseOffset, bool HasBaseReg, int64_t Scale) { in isLegalUse() argument
1468 BaseOffset, HasBaseReg, Scale) || in isLegalUse()
1471 (Scale == 1 && in isLegalUse()
1480 F.BaseOffset, F.HasBaseReg, F.Scale); in isLegalUse()
1487 F.Scale); in isAMCompletelyFolded()
1492 if (!F.Scale) in getScalingFactorCost()
1499 return F.Scale != 1; in getScalingFactorCost()
1506 F.Scale, LU.AccessTy.AddrSpace); in getScalingFactorCost()
1509 F.Scale, LU.AccessTy.AddrSpace); in getScalingFactorCost()
1535 int64_t Scale = Kind == LSRUse::ICmpZero ? -1 : 1; in isAlwaysFoldable() local
1539 if (!HasBaseReg && Scale == 1) { in isAlwaysFoldable()
1540 Scale = 0; in isAlwaysFoldable()
1545 HasBaseReg, Scale); in isAlwaysFoldable()
1569 int64_t Scale = Kind == LSRUse::ICmpZero ? -1 : 1; in isAlwaysFoldable() local
1572 BaseOffset, HasBaseReg, Scale); in isAlwaysFoldable()
2158 int64_t Scale = C->getSExtValue(); in OptimizeLoopTermCond() local
2161 /*HasBaseReg=*/false, Scale, in OptimizeLoopTermCond()
2164 Scale = -Scale; in OptimizeLoopTermCond()
2167 /*HasBaseReg=*/false, Scale, in OptimizeLoopTermCond()
2343 F.Scale == OrigF.Scale && in FindUseWithSimilarFormula()
3328 if (Base.Scale == 1) in GenerateReassociations()
3338 if (Base.BaseRegs.size() + (Base.Scale == 1) <= 1) in GenerateCombinations()
3394 if (Base.Scale == 1) in GenerateSymbolicOffsets()
3414 F.Scale = 0; in GenerateConstantOffsetsImpl()
3454 if (Base.Scale == 1) in GenerateConstantOffsets()
3554 if (Base.Scale != 0 && !Base.unscale()) in GenerateScales()
3557 assert(Base.Scale == 0 && "unscale did not did its job!"); in GenerateScales()
3561 Base.Scale = Factor; in GenerateScales()
3598 if (F.Scale == 1 && F.BaseRegs.empty()) in GenerateScales()
3760 int64_t Offset = (uint64_t)F.BaseOffset + Imm * (uint64_t)F.Scale; in GenerateCrossUseConstantOffsets()
3777 (C->getAPInt().abs() * APInt(BitWidth, F.Scale)) in GenerateCrossUseConstantOffsets()
4060 if (F.BaseOffset == 0 || (F.Scale != 0 && F.Scale != 1)) in NarrowSearchSpaceByCollapsingUnrolledCode()
4493 if (F.Scale != 0) { in Expand()
4504 if (F.Scale == 1) in Expand()
4511 assert(F.Scale == -1 && in Expand()
4528 if (F.Scale != 1) in Expand()
4530 SE.getMulExpr(ScaledS, SE.getConstant(ScaledS->getType(), F.Scale)); in Expand()
4598 if (F.Scale == -1) { in Expand()
4610 assert((F.Scale == 0 || F.Scale == 1) && in Expand()