Searched refs:SmallScale (Results 1 - 1 of 1) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1348 APInt SmallScale = Scale.trunc(SmallSize); local
1349 // Suppose Op = sext X, and we descale X as Y * SmallScale. We want to
1351 // sext (Y * SmallScale) = (sext Y) * Scale
1352 // some conditions need to hold however: SmallScale must sign-extend to
1353 // Scale and the multiplication Y * SmallScale should not overflow.
1354 if (SmallScale.sext(Scale.getBitWidth()) != Scale)
1355 // SmallScale does not sign-extend to Scale.
1357 assert(SmallScale.exactLogBase2() == logScale);
1358 // Require that Y * SmallScale must not overflow.
1363 Scale = SmallScale;
[all...]

Completed in 62 milliseconds