[llvm] r320044 - [X86][X87] X87 math binop pseudo instructions don't need scheduling info
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 06:07:18 PST 2017
Author: rksimon
Date: Thu Dec 7 06:07:18 2017
New Revision: 320044
URL: http://llvm.org/viewvc/llvm-project?rev=320044&view=rev
Log:
[X86][X87] X87 math binop pseudo instructions don't need scheduling info
Modified:
llvm/trunk/lib/Target/X86/X86InstrFPStack.td
Modified: llvm/trunk/lib/Target/X86/X86InstrFPStack.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrFPStack.td?rev=320044&r1=320043&r2=320044&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrFPStack.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrFPStack.td Thu Dec 7 06:07:18 2017
@@ -237,19 +237,24 @@ def _FI32m : FPI<0xDA, fp, (outs), (ins
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<fadd>;
defm SUB : FPBinary_rr<fsub>;
defm MUL : FPBinary_rr<fmul>;
defm DIV : FPBinary_rr<fdiv>;
+}
+
// Sets the scheduling resources for the actual NAME#_F<size>m defintions.
let SchedRW = [WriteFAddLd] in {
defm ADD : FPBinary<fadd, MRM0m, "add">;
defm SUB : FPBinary<fsub, MRM4m, "sub">;
defm SUBR: FPBinary<fsub ,MRM5m, "subr", 0>;
}
+
let SchedRW = [WriteFMulLd] in {
defm MUL : FPBinary<fmul, MRM1m, "mul">;
}
+
let SchedRW = [WriteFDivLd] in {
defm DIV : FPBinary<fdiv, MRM6m, "div">;
defm DIVR: FPBinary<fdiv, MRM7m, "divr", 0>;
More information about the llvm-commits
mailing list