@@ -5642,29 +5642,29 @@ MachineInstr *CombinerHelper::buildSDivUsingMul(MachineInstr &MI) const {
5642
5642
auto *CI = cast<ConstantInt>(C);
5643
5643
const APInt &Divisor = CI->getValue ();
5644
5644
5645
- SignedDivisionByConstantInfo magics =
5645
+ SignedDivisionByConstantInfo Magics =
5646
5646
SignedDivisionByConstantInfo::get (Divisor);
5647
5647
int NumeratorFactor = 0 ;
5648
5648
int ShiftMask = -1 ;
5649
5649
5650
5650
if (Divisor.isOne () || Divisor.isAllOnes ()) {
5651
5651
// If d is +1/-1, we just multiply the numerator by +1/-1.
5652
5652
NumeratorFactor = Divisor.getSExtValue ();
5653
- magics .Magic = 0 ;
5654
- magics .ShiftAmount = 0 ;
5653
+ Magics .Magic = 0 ;
5654
+ Magics .ShiftAmount = 0 ;
5655
5655
ShiftMask = 0 ;
5656
- } else if (Divisor.isStrictlyPositive () && magics .Magic .isNegative ()) {
5656
+ } else if (Divisor.isStrictlyPositive () && Magics .Magic .isNegative ()) {
5657
5657
// If d > 0 and m < 0, add the numerator.
5658
5658
NumeratorFactor = 1 ;
5659
- } else if (Divisor.isNegative () && magics .Magic .isStrictlyPositive ()) {
5659
+ } else if (Divisor.isNegative () && Magics .Magic .isStrictlyPositive ()) {
5660
5660
// If d < 0 and m > 0, subtract the numerator.
5661
5661
NumeratorFactor = -1 ;
5662
5662
}
5663
5663
5664
- MagicFactors.push_back (MIB.buildConstant (ScalarTy, magics .Magic ).getReg (0 ));
5664
+ MagicFactors.push_back (MIB.buildConstant (ScalarTy, Magics .Magic ).getReg (0 ));
5665
5665
Factors.push_back (MIB.buildConstant (ScalarTy, NumeratorFactor).getReg (0 ));
5666
5666
Shifts.push_back (
5667
- MIB.buildConstant (ScalarShiftAmtTy, magics .ShiftAmount ).getReg (0 ));
5667
+ MIB.buildConstant (ScalarShiftAmtTy, Magics .ShiftAmount ).getReg (0 ));
5668
5668
ShiftMasks.push_back (MIB.buildConstant (ScalarTy, ShiftMask).getReg (0 ));
5669
5669
5670
5670
return true ;
0 commit comments