1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

More code permutation to appease MSVC

llvm-svn: 262449
This commit is contained in:
Sanjoy Das 2016-03-02 02:15:42 +00:00
parent 559acdcb2c
commit 5ad27c32eb

View File

@ -4577,12 +4577,15 @@ ConstantRange ScalarEvolution::getRangeViaFactoring(const SCEV *Start,
// from deep in the call stack, and calling getSCEV (on a sext instruction,
// say) can end up caching a suboptimal value.
APInt TrueStart = *StartPattern.TrueValue + Offset;
APInt TrueStep = *StepPattern.TrueValue;
APInt FalseStart = *StartPattern.FalseValue + Offset;
APInt FalseStep = *StepPattern.FalseValue;
ConstantRange TrueRange = getRangeForAffineAR(
getConstant(*StartPattern.TrueValue + Offset),
getConstant(*StepPattern.TrueValue), MaxBECount, BitWidth);
getConstant(TrueStart), getConstant(TrueStep), MaxBECount, BitWidth);
ConstantRange FalseRange = getRangeForAffineAR(
getConstant(*StartPattern.FalseValue + Offset),
getConstant(*StepPattern.FalseValue), MaxBECount, BitWidth);
getConstant(FalseStart), getConstant(FalseStep), MaxBECount, BitWidth);
return TrueRange.unionWith(FalseRange);
}