[llvm] 489e728 - [DAG] computeOverflowForSignedAdd - fix typo in comment. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat May 6 06:18:37 PDT 2023
Author: Simon Pilgrim
Date: 2023-05-06T14:18:22+01:00
New Revision: 489e72867238c8bbff167b7566b3e129f8557634
URL: https://github.com/llvm/llvm-project/commit/489e72867238c8bbff167b7566b3e129f8557634
DIFF: https://github.com/llvm/llvm-project/commit/489e72867238c8bbff167b7566b3e129f8557634.diff
LOG: [DAG] computeOverflowForSignedAdd - fix typo in comment. NFC.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index c05ea0b9a5c1..9cbf55f95dff 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3949,7 +3949,7 @@ SelectionDAG::computeOverflowForSignedAdd(SDValue N0, SDValue N1) const {
if (isNullConstant(N1))
return OFK_Never;
- // If bother operands each have at least two sign bits, the addition
+ // If both operands each have at least two sign bits, the addition
// cannot overflow.
if (ComputeNumSignBits(N0) > 1 && ComputeNumSignBits(N1) > 1)
return OFK_Never;
More information about the llvm-commits
mailing list