From: Simon Pilgrim Date: Mon, 22 Jun 2020 19:03:23 +0000 (+0100) Subject: [X86] truncateVectorWithPACK - fix outdated comment. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c257bb44e7216961cb46d22d4a53844919c8ed0;p=platform%2Fupstream%2Fllvm.git [X86] truncateVectorWithPACK - fix outdated comment. NFC. We perform PACKSS/PACKUS on AVX512 targets if the calling function wants to. --- 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();