diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-04-08 19:56:04 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-04-08 19:56:04 +0000 |
commit | 0d7df36c668d54e95143f5a330997f32aaa0dd97 (patch) | |
tree | 027ffa8ba4164265d74890175bed2bccfaff9135 /llvm/lib/CodeGen/TargetSubtargetInfo.cpp | |
parent | b7baa358f632324f593deeba3daa3268795bd258 (diff) | |
download | bcm5719-llvm-0d7df36c668d54e95143f5a330997f32aaa0dd97.tar.gz bcm5719-llvm-0d7df36c668d54e95143f5a330997f32aaa0dd97.zip |
[TargetSchedule] shrink interface for init(); NFCI
The TargetSchedModel is always initialized using the TargetSubtargetInfo's
MCSchedModel and TargetInstrInfo, so we don't need to extract those and
pass 3 parameters to init().
Differential Revision: https://reviews.llvm.org/D44789
llvm-svn: 329540
Diffstat (limited to 'llvm/lib/CodeGen/TargetSubtargetInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetSubtargetInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetSubtargetInfo.cpp b/llvm/lib/CodeGen/TargetSubtargetInfo.cpp index 0d7940d767c..2b9cc64143d 100644 --- a/llvm/lib/CodeGen/TargetSubtargetInfo.cpp +++ b/llvm/lib/CodeGen/TargetSubtargetInfo.cpp @@ -88,7 +88,7 @@ std::string TargetSubtargetInfo::getSchedInfoStr(const MachineInstr &MI) const { // We don't cache TSchedModel because it depends on TargetInstrInfo // that could be changed during the compilation TargetSchedModel TSchedModel; - TSchedModel.init(getSchedModel(), this, getInstrInfo()); + TSchedModel.init(this); unsigned Latency = TSchedModel.computeInstrLatency(&MI); Optional<double> RThroughput = TSchedModel.computeInstrRThroughput(&MI); return createSchedInfoStr(Latency, RThroughput); @@ -99,7 +99,7 @@ std::string TargetSubtargetInfo::getSchedInfoStr(MCInst const &MCI) const { // We don't cache TSchedModel because it depends on TargetInstrInfo // that could be changed during the compilation TargetSchedModel TSchedModel; - TSchedModel.init(getSchedModel(), this, getInstrInfo()); + TSchedModel.init(this); unsigned Latency; if (TSchedModel.hasInstrSchedModel()) Latency = TSchedModel.computeInstrLatency(MCI.getOpcode()); |