@@ -7056,9 +7056,9 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7056
7056
// We try to combine uaddo to non-overflowing add.
7057
7057
if (!IsSigned) {
7058
7058
ConstantRange CRLHS =
7059
- ConstantRange::fromKnownBits (KB->getKnownBits (LHS), false /* IsSigned*/ );
7059
+ ConstantRange::fromKnownBits (KB->getKnownBits (LHS), /* IsSigned= */ false );
7060
7060
ConstantRange CRRHS =
7061
- ConstantRange::fromKnownBits (KB->getKnownBits (RHS), false /* IsSigned*/ );
7061
+ ConstantRange::fromKnownBits (KB->getKnownBits (RHS), /* IsSigned= */ false );
7062
7062
7063
7063
switch (CRLHS.unsignedAddMayOverflow (CRRHS)) {
7064
7064
case ConstantRange::OverflowResult::MayOverflow:
@@ -7086,7 +7086,7 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7086
7086
7087
7087
// If LHS and RHS each have at least two sign bits, then there is no signed
7088
7088
// overflow.
7089
- if (KB->computeNumSignBits (LHS ) > 1 && KB->computeNumSignBits (RHS ) > 1 ) {
7089
+ if (KB->computeNumSignBits (RHS ) > 1 && KB->computeNumSignBits (LHS ) > 1 ) {
7090
7090
MatchInfo = [=](MachineIRBuilder &B) {
7091
7091
B.buildAdd (Dst, LHS, RHS, MachineInstr::MIFlag::NoSWrap);
7092
7092
B.buildConstant (Carry, 0 );
@@ -7095,9 +7095,9 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
7095
7095
}
7096
7096
7097
7097
ConstantRange CRLHS =
7098
- ConstantRange::fromKnownBits (KB->getKnownBits (LHS), true /* IsSigned*/ );
7098
+ ConstantRange::fromKnownBits (KB->getKnownBits (LHS), /* IsSigned= */ true );
7099
7099
ConstantRange CRRHS =
7100
- ConstantRange::fromKnownBits (KB->getKnownBits (RHS), true /* IsSigned*/ );
7100
+ ConstantRange::fromKnownBits (KB->getKnownBits (RHS), /* IsSigned= */ true );
7101
7101
7102
7102
switch (CRLHS.signedAddMayOverflow (CRRHS)) {
7103
7103
case ConstantRange::OverflowResult::MayOverflow:
0 commit comments