Skip to content

Commit aed590c

Browse files
author
Thorsten Schütt
committed
remove else after return
1 parent 5addd19 commit aed590c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6968,12 +6968,12 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
69686968
B.buildSAddo(Dst, Carry, RHS, LHS);
69696969
};
69706970
return true;
6971-
} else {
6972-
MatchInfo = [=](MachineIRBuilder &B) {
6973-
B.buildUAddo(Dst, Carry, RHS, LHS);
6974-
};
6975-
return true;
69766971
}
6972+
// !IsSigned
6973+
MatchInfo = [=](MachineIRBuilder &B) {
6974+
B.buildUAddo(Dst, Carry, RHS, LHS);
6975+
};
6976+
return true;
69776977
}
69786978

69796979
std::optional<APInt> MaybeLHS = getConstantOrConstantSplatVector(LHS);

0 commit comments

Comments
 (0)