[llvm] 4a3cfd1 - [RISCV][NFC] Fix typo in comment in RISCVISelLowering

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 04:39:24 PDT 2023


Author: Alex Bradbury
Date: 2023-04-25T12:38:04+01:00
New Revision: 4a3cfd119b2ccfdf0f51964b3a31493de8982bd7

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

LOG: [RISCV][NFC] Fix typo in comment in RISCVISelLowering

SELECT_CC is expanded to SETT and SELECT.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 47d933515898..12553938a278 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -4630,7 +4630,7 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
   case ISD::SELECT_CC: {
     // This occurs because we custom legalize SETGT and SETUGT for setcc. That
     // causes LegalizeDAG to think we need to custom legalize select_cc. Expand
-    // into separate SETCC+SELECT_CC just like LegalizeDAG.
+    // into separate SETCC+SELECT just like LegalizeDAG.
     SDValue Tmp1 = Op.getOperand(0);
     SDValue Tmp2 = Op.getOperand(1);
     SDValue True = Op.getOperand(2);


        


More information about the llvm-commits mailing list