summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrFPStack.td
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-10-31 13:37:57 -0700
committerCraig Topper <craig.topper@intel.com>2019-10-31 13:42:01 -0700
commita0aef632086781d7c67ab3c7ff0bbd019a2ba6c8 (patch)
treeb838007bc7fec13bbb955e0c0bdd45169c49d61d /llvm/lib/Target/X86/X86InstrFPStack.td
parentd6bb256b443bc42ae626a5da5ccdd8460ad1003c (diff)
downloadbcm5719-llvm-a0aef632086781d7c67ab3c7ff0bbd019a2ba6c8.tar.gz
bcm5719-llvm-a0aef632086781d7c67ab3c7ff0bbd019a2ba6c8.zip
[X86] Remove FSIN/FCOS isel patterns and the pseudo instructions that they selected for the FP stackifier.
We always expand these to libcalls so get rid of the last vestiges of using the instructions.
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrFPStack.td')
-rw-r--r--llvm/lib/Target/X86/X86InstrFPStack.td7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86InstrFPStack.td b/llvm/lib/Target/X86/X86InstrFPStack.td
index 2ec6d50f970..73cffc9aee4 100644
--- a/llvm/lib/Target/X86/X86InstrFPStack.td
+++ b/llvm/lib/Target/X86/X86InstrFPStack.td
@@ -369,11 +369,6 @@ defm ABS : FPUnary<fabs, MRM_E1, "fabs">;
let SchedRW = [WriteFSqrt80] in
defm SQRT: FPUnary<fsqrt,MRM_FA, "fsqrt">;
-let SchedRW = [WriteMicrocoded] in {
-defm SIN : FPUnary<fsin, MRM_FE, "fsin">;
-defm COS : FPUnary<fcos, MRM_FF, "fcos">;
-}
-
let SchedRW = [WriteFCom] in {
let hasSideEffects = 0 in {
def TST_Fp32 : FpIf32<(outs), (ins RFP32:$src), OneArgFP, []>;
@@ -721,6 +716,8 @@ def FDECSTP : I<0xD9, MRM_F6, (outs), (ins), "fdecstp", []>;
def FINCSTP : I<0xD9, MRM_F7, (outs), (ins), "fincstp", []>;
def FPREM : I<0xD9, MRM_F8, (outs), (ins), "fprem", []>;
def FYL2XP1 : I<0xD9, MRM_F9, (outs), (ins), "fyl2xp1", []>;
+def FSIN : I<0xD9, MRM_FE, (outs), (ins), "fsin", []>;
+def FCOS : I<0xD9, MRM_FF, (outs), (ins), "fcos", []>;
def FSINCOS : I<0xD9, MRM_FB, (outs), (ins), "fsincos", []>;
def FRNDINT : I<0xD9, MRM_FC, (outs), (ins), "frndint", []>;
def FSCALE : I<0xD9, MRM_FD, (outs), (ins), "fscale", []>;
OpenPOWER on IntegriCloud