Lines Matching refs:Scale
240 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, in GetLinearExpression() argument
247 Scale = 1; in GetLinearExpression()
259 assert(Scale == 0 && "Constant values don't have a scale"); in GetLinearExpression()
274 Scale = 1; in GetLinearExpression()
282 Scale = 1; in GetLinearExpression()
288 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
293 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
298 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
301 Scale *= RHS; in GetLinearExpression()
304 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
313 Scale.getBitWidth() < RHS.getLimitedValue()) { in GetLinearExpression()
314 Scale = 1; in GetLinearExpression()
320 Scale <<= RHS.getLimitedValue(); in GetLinearExpression()
344 GetLinearExpression(CastOp, Scale, Offset, ZExtBits, SExtBits, DL, in GetLinearExpression()
362 Scale = 1; in GetLinearExpression()
375 Scale = 1; in GetLinearExpression()
387 Scale = 1; in GetLinearExpression()
529 APInt Scale(MaxPointerSize, DL.getTypeAllocSize(GTI.getIndexedType())); in DecomposeGEPExpression() local
556 Scale.sext(MaxPointerSize*2); in DecomposeGEPExpression()
566 Decomposed.OtherOffset += IndexOffset.sextOrTrunc(MaxPointerSize) * Scale; in DecomposeGEPExpression()
567 Scale *= IndexScale.sextOrTrunc(MaxPointerSize); in DecomposeGEPExpression()
578 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression()
586 Scale = adjustToPointerSize(Scale, PointerSize); in DecomposeGEPExpression()
588 if (!!Scale) { in DecomposeGEPExpression()
589 VariableGEPIndex Entry = {Index, ZExtBits, SExtBits, Scale}; in DecomposeGEPExpression()
1436 Modulo |= DecompGEP1.VarIndices[i].Scale; in aliasGEP()
1457 APInt Scale = DecompGEP1.VarIndices[i].Scale; in aliasGEP() local
1459 (SignKnownZero && Scale.sge(0)) || (SignKnownOne && Scale.slt(0)); in aliasGEP()
1885 APInt Scale = Src[i].Scale; in GetIndexDifference() local
1896 if (Dest[j].Scale != Scale) in GetIndexDifference()
1897 Dest[j].Scale -= Scale; in GetIndexDifference()
1900 Scale = 0; in GetIndexDifference()
1905 if (!!Scale) { in GetIndexDifference()
1906 VariableGEPIndex Entry = {V, ZExtBits, SExtBits, -Scale}; in GetIndexDifference()
1926 Var0.Scale != -Var1.Scale) in constantOffsetHeuristic()
1960 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()