[PATCH] D21548: [TargetSchedule] Use 'isOutOfOrder' as possible to avoid magic number. NFC.

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 01:17:01 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL273255: [TargetSchedule] Use 'isOutOfOrder' as possible to avoid magic number. NFC. (authored by flyingforyou).

Changed prior to commit:
  http://reviews.llvm.org/D21548?vs=61343&id=61345#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21548

Files:
  llvm/trunk/lib/CodeGen/TargetSchedule.cpp

Index: llvm/trunk/lib/CodeGen/TargetSchedule.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/TargetSchedule.cpp
+++ llvm/trunk/lib/CodeGen/TargetSchedule.cpp
@@ -267,11 +267,10 @@
 unsigned TargetSchedModel::
 computeOutputLatency(const MachineInstr *DefMI, unsigned DefOperIdx,
                      const MachineInstr *DepMI) const {
-  if (SchedModel.MicroOpBufferSize <= 1)
+  if (!SchedModel.isOutOfOrder())
     return 1;
 
-  // MicroOpBufferSize > 1 indicates an out-of-order processor that can dispatch
-  // WAW dependencies in the same cycle.
+  // Out-of-order processor can dispatch WAW dependencies in the same cycle.
 
   // Treat predication as a data dependency for out-of-order cpus. In-order
   // cpus do not need to treat predicated writes specially.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21548.61345.patch
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160621/044836f5/attachment.bin>


More information about the llvm-commits mailing list