[llvm] r320302 - [X86][AVX[ Tag VZEROALL/VZEROUPPER instructions scheduler classes
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 04:26:35 PST 2017
Author: rksimon
Date: Sun Dec 10 04:26:35 2017
New Revision: 320302
URL: http://llvm.org/viewvc/llvm-project?rev=320302&view=rev
Log:
[X86][AVX[ Tag VZEROALL/VZEROUPPER instructions scheduler classes
Modified:
llvm/trunk/lib/Target/X86/X86InstrSSE.td
llvm/trunk/lib/Target/X86/X86Schedule.td
Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=320302&r1=320301&r2=320302&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Sun Dec 10 04:26:35 2017
@@ -7822,16 +7822,20 @@ def : Pat<(v4i64 (X86VPerm2x128 (loadv4i
// VZERO - Zero YMM registers
//
// Note, these instruction do not affect the YMM16-YMM31.
+let SchedRW = [WriteSystem] in {
let Defs = [YMM0, YMM1, YMM2, YMM3, YMM4, YMM5, YMM6, YMM7,
YMM8, YMM9, YMM10, YMM11, YMM12, YMM13, YMM14, YMM15] in {
// Zero All YMM registers
def VZEROALL : I<0x77, RawFrm, (outs), (ins), "vzeroall",
- [(int_x86_avx_vzeroall)]>, PS, VEX, VEX_L, Requires<[HasAVX]>, VEX_WIG;
+ [(int_x86_avx_vzeroall)], IIC_AVX_ZERO>, PS, VEX, VEX_L,
+ Requires<[HasAVX]>, VEX_WIG;
// Zero Upper bits of YMM registers
def VZEROUPPER : I<0x77, RawFrm, (outs), (ins), "vzeroupper",
- [(int_x86_avx_vzeroupper)]>, PS, VEX, Requires<[HasAVX]>, VEX_WIG;
-}
+ [(int_x86_avx_vzeroupper)], IIC_AVX_ZERO>, PS, VEX,
+ Requires<[HasAVX]>, VEX_WIG;
+} // Defs
+} // SchedRW
//===----------------------------------------------------------------------===//
// Half precision conversion instructions
Modified: llvm/trunk/lib/Target/X86/X86Schedule.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Schedule.td?rev=320302&r1=320301&r2=320302&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Schedule.td (original)
+++ llvm/trunk/lib/Target/X86/X86Schedule.td Sun Dec 10 04:26:35 2017
@@ -394,6 +394,8 @@ def IIC_SSE_CVT_SS2SI64_RR : InstrItinCl
def IIC_SSE_CVT_SD2SI_RM : InstrItinClass;
def IIC_SSE_CVT_SD2SI_RR : InstrItinClass;
+def IIC_AVX_ZERO : InstrItinClass;
+
// MMX
def IIC_MMX_MOV_MM_RM : InstrItinClass;
def IIC_MMX_MOV_REG_MM : InstrItinClass;
More information about the llvm-commits
mailing list