[llvm] r342829 - [X86] Fix a few typos in comments.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 22 23:49:47 PDT 2018


Author: ctopper
Date: Sat Sep 22 23:49:47 2018
New Revision: 342829

URL: http://llvm.org/viewvc/llvm-project?rev=342829&view=rev
Log:
[X86] Fix a few typos in comments.

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

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=342829&r1=342828&r2=342829&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Sep 22 23:49:47 2018
@@ -17308,7 +17308,7 @@ static  SDValue LowerZERO_EXTEND_Mask(SD
   SDLoc DL(Op);
   unsigned NumElts = VT.getVectorNumElements();
 
-  // For all vectors, but vXi8 we can just emit a sign_extend a shift. This
+  // For all vectors, but vXi8 we can just emit a sign_extend and a shift. This
   // avoids a constant pool load.
   if (VT.getVectorElementType() != MVT::i8) {
     SDValue Extend = DAG.getNode(ISD::SIGN_EXTEND, DL, VT, In);
@@ -19520,7 +19520,7 @@ static SDValue LowerSIGN_EXTEND_Mask(SDV
 
   unsigned NumElts = VT.getVectorNumElements();
 
-  // Extend VT if the scalar type is v8/v16 and BWI is not supported.
+  // Extend VT if the scalar type is i8/i16 and BWI is not supported.
   MVT ExtVT = VT;
   if (!Subtarget.hasBWI() && VTElt.getSizeInBits() <= 16) {
     // If v16i32 is to be avoided, we'll need to split and concatenate.




More information about the llvm-commits mailing list