From 4c257bb44e7216961cb46d22d4a53844919c8ed0 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 22 Jun 2020 20:03:23 +0100 Subject: [PATCH] [X86] truncateVectorWithPACK - fix outdated comment. NFC. We perform PACKSS/PACKUS on AVX512 targets if the calling function wants to. --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 1c6164c..a6bb415 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(); -- 2.7.4