From 373055293b04c63fefe690f0c1568c72bc8cbd8c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 30 Mar 2017 21:05:33 +0000 Subject: [PATCH] [AVX-512] Fix bad comment from r299112. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299114 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FastISel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 06850f36309..f225696afe2 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -3533,7 +3533,8 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) { report_fatal_error("SSE register return with SSE disabled"); } - // If the return value is an i1 and AVX-512 is enabled, stop. + // If the return value is an i1 and AVX-512 is enabled, we need + // to do a fixup to make the copy legal. if (CopyVT == MVT::i1 && SrcReg == X86::AL && Subtarget->hasAVX512()) { // Need to copy to a GR32 first. // TODO: MOVZX isn't great here. We don't care about the upper bits. -- 2.40.0