From: Simon Pilgrim Date: Thu, 7 Dec 2017 14:07:18 +0000 (+0000) Subject: [X86][X87] X87 math binop pseudo instructions don't need scheduling info X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cda6b5087c5277ead9f627d54d2217a82e8ce87;p=llvm [X86][X87] X87 math binop pseudo instructions don't need scheduling info git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320044 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrFPStack.td b/lib/Target/X86/X86InstrFPStack.td index 6788ba50c96..cfc38f0f005 100644 --- a/lib/Target/X86/X86InstrFPStack.td +++ b/lib/Target/X86/X86InstrFPStack.td @@ -237,19 +237,24 @@ def _FI32m : FPI<0xDA, fp, (outs), (ins i32mem:$src), let Defs = [FPSW] in { // FPBinary_rr just defines pseudo-instructions, no need to set a scheduling // resources. +let hasNoSchedulingInfo = 1 in { defm ADD : FPBinary_rr; defm SUB : FPBinary_rr; defm MUL : FPBinary_rr; defm DIV : FPBinary_rr; +} + // Sets the scheduling resources for the actual NAME#_Fm defintions. let SchedRW = [WriteFAddLd] in { defm ADD : FPBinary; defm SUB : FPBinary; defm SUBR: FPBinary; } + let SchedRW = [WriteFMulLd] in { defm MUL : FPBinary; } + let SchedRW = [WriteFDivLd] in { defm DIV : FPBinary; defm DIVR: FPBinary;