aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86Schedule.td
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-03-28 22:54:45 +0000
committerNadav Rotem <nrotem@apple.com>2013-03-28 22:54:45 +0000
commitbad24f757d430ed9ef5348da58aa20d03409d6a0 (patch)
tree0f3a8a9352ca744b57527ae5477fcbc9f658c49d /lib/Target/X86/X86Schedule.td
parentf2a2806baf3763d551a9f361124b608b2eed66fa (diff)
downloadexternal_llvm-bad24f757d430ed9ef5348da58aa20d03409d6a0.zip
external_llvm-bad24f757d430ed9ef5348da58aa20d03409d6a0.tar.gz
external_llvm-bad24f757d430ed9ef5348da58aa20d03409d6a0.tar.bz2
Add the X86 FMAs to the scheduling model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Schedule.td')
-rw-r--r--lib/Target/X86/X86Schedule.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Schedule.td b/lib/Target/X86/X86Schedule.td
index 0159500..9fbde88 100644
--- a/lib/Target/X86/X86Schedule.td
+++ b/lib/Target/X86/X86Schedule.td
@@ -67,6 +67,10 @@ defm WriteFMul : X86SchedWritePair; // Floating point multiplication.
defm WriteFDiv : X86SchedWritePair; // Floating point division.
defm WriteFSqrt : X86SchedWritePair; // Floating point square root.
defm WriteFRcp : X86SchedWritePair; // Floating point reciprocal.
+defm WriteFMA : X86SchedWritePair; // Fused Multiply Add.
+
+// FMA Scheduling helper class.
+class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
// Vector integer operations.
defm WriteVecALU : X86SchedWritePair; // Vector integer ALU op, no logicals.