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()
1009 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula()
1359 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument
1363 HasBaseReg, Scale, AccessTy.AddrSpace); in isAMCompletelyFolded()
1372 if (Scale != 0 && HasBaseReg && BaseOffset != 0) in isAMCompletelyFolded()
1377 if (Scale != 0 && Scale != -1) in isAMCompletelyFolded()
1387 if (Scale == 0) in isAMCompletelyFolded()
1398 return !BaseGV && Scale == 0 && BaseOffset == 0; in isAMCompletelyFolded()
1402 return !BaseGV && (Scale == 0 || Scale == -1) && BaseOffset == 0; in isAMCompletelyFolded()
1412 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument
1424 HasBaseReg, Scale) && in isAMCompletelyFolded()
1426 HasBaseReg, Scale); in isAMCompletelyFolded()
1440 assert((F.isCanonical() || F.Scale != 0)); in isAMCompletelyFolded()
1442 F.BaseGV, F.BaseOffset, F.HasBaseReg, F.Scale); in isAMCompletelyFolded()
1449 int64_t BaseOffset, bool HasBaseReg, int64_t Scale) { in isLegalUse() argument
1452 BaseOffset, HasBaseReg, Scale) || in isLegalUse()
1455 (Scale == 1 && in isLegalUse()
1464 F.BaseOffset, F.HasBaseReg, F.Scale); in isLegalUse()
1471 F.Scale); in isAMCompletelyFolded()
1476 if (!F.Scale) in getScalingFactorCost()
1483 return F.Scale != 1; in getScalingFactorCost()
1490 F.Scale, LU.AccessTy.AddrSpace); in getScalingFactorCost()
1493 F.Scale, LU.AccessTy.AddrSpace); in getScalingFactorCost()
1519 int64_t Scale = Kind == LSRUse::ICmpZero ? -1 : 1; in isAlwaysFoldable() local
1523 if (!HasBaseReg && Scale == 1) { in isAlwaysFoldable()
1524 Scale = 0; in isAlwaysFoldable()
1529 HasBaseReg, Scale); in isAlwaysFoldable()
1553 int64_t Scale = Kind == LSRUse::ICmpZero ? -1 : 1; in isAlwaysFoldable() local
1556 BaseOffset, HasBaseReg, Scale); in isAlwaysFoldable()
2142 int64_t Scale = C->getSExtValue(); in OptimizeLoopTermCond() local
2145 /*HasBaseReg=*/false, Scale, in OptimizeLoopTermCond()
2148 Scale = -Scale; in OptimizeLoopTermCond()
2151 /*HasBaseReg=*/false, Scale, in OptimizeLoopTermCond()
2327 F.Scale == OrigF.Scale && in FindUseWithSimilarFormula()
3309 if (Base.Scale == 1) in GenerateReassociations()
3319 if (Base.BaseRegs.size() + (Base.Scale == 1) <= 1) in GenerateCombinations()
3375 if (Base.Scale == 1) in GenerateSymbolicOffsets()
3395 F.Scale = 0; in GenerateConstantOffsetsImpl()
3435 if (Base.Scale == 1) in GenerateConstantOffsets()
3535 if (Base.Scale != 0 && !Base.unscale()) in GenerateScales()
3538 assert(Base.Scale == 0 && "unscale did not did its job!"); in GenerateScales()
3542 Base.Scale = Factor; in GenerateScales()
3579 if (F.Scale == 1 && F.BaseRegs.empty()) in GenerateScales()
3741 int64_t Offset = (uint64_t)F.BaseOffset + Imm * (uint64_t)F.Scale; in GenerateCrossUseConstantOffsets()
3758 (C->getAPInt().abs() * APInt(BitWidth, F.Scale)) in GenerateCrossUseConstantOffsets()
4041 if (F.BaseOffset == 0 || (F.Scale != 0 && F.Scale != 1)) in NarrowSearchSpaceByCollapsingUnrolledCode()
4481 if (F.Scale != 0) { in Expand()
4492 if (F.Scale == 1) in Expand()
4499 assert(F.Scale == -1 && in Expand()
4516 if (F.Scale != 1) in Expand()
4518 SE.getMulExpr(ScaledS, SE.getConstant(ScaledS->getType(), F.Scale)); in Expand()
4586 if (F.Scale == -1) { in Expand()
4598 assert((F.Scale == 0 || F.Scale == 1) && in Expand()