Lines Matching refs:Scale
284 APInt Scale; member
290 LinearExpression(const ExtendedValue &Val, const APInt &Scale, in LinearExpression()
292 : Val(Val), Scale(Scale), Offset(Offset), IsNSW(IsNSW) {} in LinearExpression()
296 Scale = APInt(BitWidth, 1); in LinearExpression()
360 E.Scale *= RHS; in GetLinearExpression()
376 E.Scale <<= RHS.getLimitedValue(); in GetLinearExpression()
542 APInt Scale(MaxPointerSize, in DecomposeGEPExpression() local
563 .smul_ov(Scale, Overflow); in DecomposeGEPExpression()
568 Scale *= LE.Scale.sextOrTrunc(MaxPointerSize); in DecomposeGEPExpression()
579 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression()
587 Scale = adjustToPointerSize(Scale, PointerSize); in DecomposeGEPExpression()
589 if (!!Scale) { in DecomposeGEPExpression()
591 LE.Val.V, LE.Val.ZExtBits, LE.Val.SExtBits, Scale, CxtI, LE.IsNSW}; in DecomposeGEPExpression()
1150 APInt Scale = DecompGEP1.VarIndices[i].Scale; in aliasGEP() local
1151 APInt ScaleForGCD = DecompGEP1.VarIndices[i].Scale; in aliasGEP()
1153 ScaleForGCD = APInt::getOneBitSet(Scale.getBitWidth(), in aliasGEP()
1154 Scale.countTrailingZeros()); in aliasGEP()
1178 AllNonNegative &= (SignKnownZero && Scale.isNonNegative()) || in aliasGEP()
1179 (SignKnownOne && Scale.isNonPositive()); in aliasGEP()
1180 AllNonPositive &= (SignKnownZero && Scale.isNonPositive()) || in aliasGEP()
1181 (SignKnownOne && Scale.isNonNegative()); in aliasGEP()
1221 MinAbsVarIndex = Var.Scale.abs(); in aliasGEP()
1229 if (Var0.Scale == -Var1.Scale && Var0.ZExtBits == Var1.ZExtBits && in aliasGEP()
1232 MinAbsVarIndex = Var0.Scale.abs(); in aliasGEP()
1707 APInt Scale = Src[i].Scale; in GetIndexDifference() local
1718 if (Dest[j].Scale != Scale) { in GetIndexDifference()
1719 Dest[j].Scale -= Scale; in GetIndexDifference()
1723 Scale = 0; in GetIndexDifference()
1728 if (!!Scale) { in GetIndexDifference()
1730 -Scale, Src[i].CxtI, Src[i].IsNSW}; in GetIndexDifference()
1750 Var0.Scale != -Var1.Scale || Var0.V->getType() != Var1.V->getType()) in constantOffsetHeuristic()
1761 if (E0.Scale != E1.Scale || E0.Val.ZExtBits != E1.Val.ZExtBits || in constantOffsetHeuristic()
1776 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()