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

/external/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1079 APInt SmallScale = Scale.trunc(SmallSize); local
1080 // Suppose Op = sext X, and we descale X as Y * SmallScale. We want to
1082 // sext (Y * SmallScale) = (sext Y) * Scale
1083 // some conditions need to hold however: SmallScale must sign-extend to
1084 // Scale and the multiplication Y * SmallScale should not overflow.
1085 if (SmallScale.sext(Scale.getBitWidth()) != Scale)
1086 // SmallScale does not sign-extend to Scale.
1088 assert(SmallScale.exactLogBase2() == logScale);
1089 // Require that Y * SmallScale must not overflow.
1094 Scale = SmallScale;
[all...]

Completed in 435 milliseconds