[llvm] r299114 - [AVX-512] Fix bad comment from r299112. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 14:05:33 PDT 2017


Author: ctopper
Date: Thu Mar 30 16:05:33 2017
New Revision: 299114

URL: http://llvm.org/viewvc/llvm-project?rev=299114&view=rev
Log:
[AVX-512] Fix bad comment from r299112. NFC

Modified:
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=299114&r1=299113&r2=299114&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Thu Mar 30 16:05:33 2017
@@ -3533,7 +3533,8 @@ bool X86FastISel::fastLowerCall(CallLowe
       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.




More information about the llvm-commits mailing list