[PATCH] D44392: [MC] Move the reciprocal throughput computation from TargetSchedModel to MCSchedModel.

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 09:24:16 PDT 2018


andreadb created this revision.
andreadb added reviewers: RKSimon, MatzeB, atrick.

This patch moves the logic that computes the reciprocal throughput into MCSchedModel from TargetSchedModel.
No functional change intended.

The goal is to make the reciprocal throughput information accessible through the MCSchedModel interface.
This is particularly important for llvm-mca, which internally manipulates a MCSchedModel.

This patch, plus https://reviews.llvm.org/D44383 fully fix PR36676.


https://reviews.llvm.org/D44392

Files:
  include/llvm/MC/MCSchedule.h
  lib/CodeGen/TargetSchedule.cpp
  lib/MC/MCSchedule.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44392.138033.patch
Type: text/x-patch
Size: 4628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180312/4500f396/attachment.bin>


More information about the llvm-commits mailing list