[llvm] e1bde1c - [SDAG] Fix a typo in comment

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 08:05:11 PDT 2024


Author: Philip Reames
Date: 2024-09-03T08:04:57-07:00
New Revision: e1bde1c5b203224b0fa68ee141ec2c7a079f5eac

URL: https://github.com/llvm/llvm-project/commit/e1bde1c5b203224b0fa68ee141ec2c7a079f5eac
DIFF: https://github.com/llvm/llvm-project/commit/e1bde1c5b203224b0fa68ee141ec2c7a079f5eac.diff

LOG: [SDAG] Fix a typo in comment

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 aa468fa9ebb4c3..870dbce3baa86e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -13297,7 +13297,7 @@ SDValue SelectionDAG::getNeutralElement(unsigned Opcode, const SDLoc &DL,
   case ISD::SMIN:
     return getConstant(APInt::getSignedMaxValue(VT.getSizeInBits()), DL, VT);
   case ISD::FADD:
-    // If flags allow, prefer positive zero single it's generally cheaper
+    // If flags allow, prefer positive zero since it's generally cheaper
     // to materialize on most targets.
     return getConstantFP(Flags.hasNoSignedZeros() ? 0.0 : -0.0, DL, VT);
   case ISD::FMUL:


        


More information about the llvm-commits mailing list