[llvm] r345112 - [X86] Correct a bad isel predicate. Though I don't think it can be exposed.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 23:13:36 PDT 2018


Author: ctopper
Date: Tue Oct 23 23:13:36 2018
New Revision: 345112

URL: http://llvm.org/viewvc/llvm-project?rev=345112&view=rev
Log:
[X86] Correct a bad isel predicate. Though I don't think it can be exposed.

This B/W VPTEST instructions are only available with AVX512BW. But lowering should prevent any byte or word elements from getting to isel so this can't be exposed.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrAVX512.td

Modified: llvm/trunk/lib/Target/X86/X86InstrAVX512.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrAVX512.td?rev=345112&r1=345111&r2=345112&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td Tue Oct 23 23:13:36 2018
@@ -5901,7 +5901,7 @@ multiclass avx512_vptest_wb<bits<8> opc,
                             v16i8x_info, NAME#"B">, EVEX_V128;
   }
 
-  let Predicates = [HasAVX512, NoVLX] in {
+  let Predicates = [HasBWI, NoVLX] in {
   defm BZ256_Alt : avx512_vptest_lowering<OpNode, v64i8_info, v32i8x_info, NAME#"B">;
   defm BZ128_Alt : avx512_vptest_lowering<OpNode, v64i8_info, v16i8x_info, NAME#"B">;
   defm WZ256_Alt : avx512_vptest_lowering<OpNode, v32i16_info, v16i16x_info, NAME#"W">;




More information about the llvm-commits mailing list