[llvm] 993f4d8 - [X86] Fix a couple comments that said LHS where they meant RHS. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 17:14:26 PST 2021


Author: Craig Topper
Date: 2021-02-27T17:14:17-08:00
New Revision: 993f4d8ffad6a4504611261758dc42349949a240

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

LOG: [X86] Fix a couple comments that said LHS where they meant RHS. NFC

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 876c01f5daf5..c965b7a10544 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -27272,7 +27272,7 @@ static SDValue LowerMUL(SDValue Op, const X86Subtarget &Subtarget,
 
     SDValue BLo, BHi;
     if (ISD::isBuildVectorOfConstantSDNodes(B.getNode())) {
-      // If the LHS is a constant, manually unpackl/unpackh.
+      // If the RHS is a constant, manually unpackl/unpackh.
       SmallVector<SDValue, 16> LoOps, HiOps;
       for (unsigned i = 0; i != NumElts; i += 16) {
         for (unsigned j = 0; j != 8; ++j) {
@@ -27515,7 +27515,7 @@ static SDValue LowerMULH(SDValue Op, const X86Subtarget &Subtarget,
 
   SDValue BLo, BHi;
   if (ISD::isBuildVectorOfConstantSDNodes(B.getNode())) {
-    // If the LHS is a constant, manually unpackl/unpackh and extend.
+    // If the RHS is a constant, manually unpackl/unpackh and extend.
     SmallVector<SDValue, 16> LoOps, HiOps;
     for (unsigned i = 0; i != NumElts; i += 16) {
       for (unsigned j = 0; j != 8; ++j) {


        


More information about the llvm-commits mailing list