[llvm] 87afefc - [RISCV] Fix mistake in comment. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 11:15:49 PDT 2021


Author: Craig Topper
Date: 2021-04-19T11:15:32-07:00
New Revision: 87afefcd22c53f7bdc68b5a13492e7f2bfc9837a

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

LOG: [RISCV] Fix mistake in comment. NFC

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 cd10cb6eb489..28958b8a4ae6 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -3720,7 +3720,7 @@ RISCVTargetLowering::lowerFixedLengthVectorStoreToRVV(SDValue Op,
   SDValue StoreVal = Store->getValue();
   MVT VT = StoreVal.getSimpleValueType();
 
-  // If the size less than a byte, we need to the unused bits with 0s.
+  // If the size less than a byte, we need to pad with zeros to make a byte.
   if (VT.getVectorElementType() == MVT::i1 && VT.getVectorNumElements() < 8) {
     VT = MVT::v8i1;
     StoreVal = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, VT,


        


More information about the llvm-commits mailing list