OSDN Git Service

[X86][SSE] Updated comment - combineVectorSignBitsTruncation handles PACKSS and PACKU...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Jun 2018 16:08:40 +0000 (16:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Jun 2018 16:08:40 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334204 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index d36ef15..f55be29 100644 (file)
@@ -36522,7 +36522,7 @@ static SDValue combineVectorSignBitsTruncation(SDNode *N, const SDLoc &DL,
   MVT InVT = In.getValueType().getSimpleVT();
   MVT InSVT = InVT.getScalarType();
 
-  // Check we have a truncation suited for PACKSS.
+  // Check we have a truncation suited for PACKSS/PACKUS.
   if (!VT.is128BitVector() && !VT.is256BitVector())
     return SDValue();
   if (SVT != MVT::i8 && SVT != MVT::i16 && SVT != MVT::i32)