[X86] truncateVectorWithPACK - fix outdated comment. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 22 Jun 2020 19:03:23 +0000 (20:03 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 23 Jun 2020 09:45:27 +0000 (10:45 +0100)
We perform PACKSS/PACKUS on AVX512 targets if the calling function wants to.

llvm/lib/Target/X86/X86ISelLowering.cpp

index 1c6164c..a6bb415 100644 (file)
@@ -20270,7 +20270,7 @@ static SDValue truncateVectorWithPACK(unsigned Opcode, EVT DstVT, SDValue In,
          "Unexpected PACK opcode");
   assert(DstVT.isVector() && "VT not a vector?");
 
-  // Requires SSE2 but AVX512 has fast vector truncate.
+  // Requires SSE2 for PACKSS (SSE41 PACKUSDW is handled below).
   if (!Subtarget.hasSSE2())
     return SDValue();