[llvm] r319553 - [X86][AVX512] Tag VPSHUFBITQMB instructions scheduler class
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 08:35:57 PST 2017
Author: rksimon
Date: Fri Dec 1 08:35:57 2017
New Revision: 319553
URL: http://llvm.org/viewvc/llvm-project?rev=319553&view=rev
Log:
[X86][AVX512] Tag VPSHUFBITQMB instructions scheduler class
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=319553&r1=319552&r2=319553&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td Fri Dec 1 08:35:57 2017
@@ -10348,32 +10348,35 @@ defm VPOPCNTW : avx512_unary_rm_vl<0x54,
avx512vl_i16_info, HasBITALG>,
avx512_unary_lowering<ctpop, avx512vl_i16_info, HasBITALG>, VEX_W;
-multiclass VPSHUFBITQMB_rm<X86VectorVTInfo VTI> {
+multiclass VPSHUFBITQMB_rm<OpndItins itins, X86VectorVTInfo VTI> {
defm rr : AVX512_maskable_cmp<0x8F, MRMSrcReg, VTI, (outs VTI.KRC:$dst),
(ins VTI.RC:$src1, VTI.RC:$src2),
"vpshufbitqmb",
"$src2, $src1", "$src1, $src2",
(X86Vpshufbitqmb (VTI.VT VTI.RC:$src1),
- (VTI.VT VTI.RC:$src2))>, EVEX_4V, T8PD;
+ (VTI.VT VTI.RC:$src2)), itins.rr>, EVEX_4V, T8PD,
+ Sched<[itins.Sched]>;
defm rm : AVX512_maskable_cmp<0x8F, MRMSrcMem, VTI, (outs VTI.KRC:$dst),
(ins VTI.RC:$src1, VTI.MemOp:$src2),
"vpshufbitqmb",
"$src2, $src1", "$src1, $src2",
(X86Vpshufbitqmb (VTI.VT VTI.RC:$src1),
- (VTI.VT (bitconvert (VTI.LdFrag addr:$src2))))>,
- EVEX_4V, EVEX_CD8<8, CD8VF>, T8PD;
+ (VTI.VT (bitconvert (VTI.LdFrag addr:$src2)))),
+ itins.rm>, EVEX_4V, EVEX_CD8<8, CD8VF>, T8PD,
+ Sched<[itins.Sched.Folded, ReadAfterLd]>;
}
-multiclass VPSHUFBITQMB_common<AVX512VLVectorVTInfo VTI> {
+multiclass VPSHUFBITQMB_common<OpndItins itins, AVX512VLVectorVTInfo VTI> {
let Predicates = [HasBITALG] in
- defm Z : VPSHUFBITQMB_rm<VTI.info512>, EVEX_V512;
+ defm Z : VPSHUFBITQMB_rm<itins, VTI.info512>, EVEX_V512;
let Predicates = [HasBITALG, HasVLX] in {
- defm Z256 : VPSHUFBITQMB_rm<VTI.info256>, EVEX_V256;
- defm Z128 : VPSHUFBITQMB_rm<VTI.info128>, EVEX_V128;
+ defm Z256 : VPSHUFBITQMB_rm<itins, VTI.info256>, EVEX_V256;
+ defm Z128 : VPSHUFBITQMB_rm<itins, VTI.info128>, EVEX_V128;
}
}
-defm VPSHUFBITQMB : VPSHUFBITQMB_common<avx512vl_i8_info>;
+// FIXME: Is there a better scheduler itinerary for VPSHUFBITQMB?
+defm VPSHUFBITQMB : VPSHUFBITQMB_common<SSE_INTMUL_ITINS_P, avx512vl_i8_info>;
//===----------------------------------------------------------------------===//
// GFNI
More information about the llvm-commits
mailing list