@@ -7062,9 +7062,9 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7062
7062
// We try to combine uaddo to non-overflowing add.
7063
7063
if (!IsSigned) {
7064
7064
ConstantRange CRLHS =
7065
- ConstantRange::fromKnownBits (KB->getKnownBits (LHS), false /* IsSigned*/ );
7065
+ ConstantRange::fromKnownBits (KB->getKnownBits (LHS), /* IsSigned= */ false );
7066
7066
ConstantRange CRRHS =
7067
- ConstantRange::fromKnownBits (KB->getKnownBits (RHS), false /* IsSigned*/ );
7067
+ ConstantRange::fromKnownBits (KB->getKnownBits (RHS), /* IsSigned= */ false );
7068
7068
7069
7069
switch (CRLHS.unsignedAddMayOverflow (CRRHS)) {
7070
7070
case ConstantRange::OverflowResult::MayOverflow:
@@ -7092,7 +7092,7 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7092
7092
7093
7093
// If LHS and RHS each have at least two sign bits, then there is no signed
7094
7094
// overflow.
7095
- if (KB->computeNumSignBits (LHS ) > 1 && KB->computeNumSignBits (RHS ) > 1 ) {
7095
+ if (KB->computeNumSignBits (RHS ) > 1 && KB->computeNumSignBits (LHS ) > 1 ) {
7096
7096
MatchInfo = [=](MachineIRBuilder &B) {
7097
7097
B.buildAdd (Dst, LHS, RHS, MachineInstr::MIFlag::NoSWrap);
7098
7098
B.buildConstant (Carry, 0 );
@@ -7101,9 +7101,9 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7101
7101
}
7102
7102
7103
7103
ConstantRange CRLHS =
7104
- ConstantRange::fromKnownBits (KB->getKnownBits (LHS), true /* IsSigned*/ );
7104
+ ConstantRange::fromKnownBits (KB->getKnownBits (LHS), /* IsSigned= */ true );
7105
7105
ConstantRange CRRHS =
7106
- ConstantRange::fromKnownBits (KB->getKnownBits (RHS), true /* IsSigned*/ );
7106
+ ConstantRange::fromKnownBits (KB->getKnownBits (RHS), /* IsSigned= */ true );
7107
7107
7108
7108
switch (CRLHS.signedAddMayOverflow (CRRHS)) {
7109
7109
case ConstantRange::OverflowResult::MayOverflow:
0 commit comments