[llvm] 4c257bb - [X86] truncateVectorWithPACK - fix outdated comment. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 02:45:44 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-23T10:45:27+01:00
New Revision: 4c257bb44e7216961cb46d22d4a53844919c8ed0

URL: https://github.com/llvm/llvm-project/commit/4c257bb44e7216961cb46d22d4a53844919c8ed0
DIFF: https://github.com/llvm/llvm-project/commit/4c257bb44e7216961cb46d22d4a53844919c8ed0.diff

LOG: [X86] truncateVectorWithPACK - fix outdated comment. NFC.

We perform PACKSS/PACKUS on AVX512 targets if the calling function wants to.

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 1c6164c56f50..a6bb4155e130 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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();
 


        


More information about the llvm-commits mailing list