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/MachineCombiner.cpp | |
parent | b7baa358f632324f593deeba3daa3268795bd258 (diff) | |
download | llvm-0d7df36c668d54e95143f5a330997f32aaa0dd97.zip llvm-0d7df36c668d54e95143f5a330997f32aaa0dd97.tar.gz llvm-0d7df36c668d54e95143f5a330997f32aaa0dd97.tar.bz2 |
[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/MachineCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index efb463f..498b4cb 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -633,7 +633,7 @@ bool MachineCombiner::runOnMachineFunction(MachineFunction &MF) { TII = STI->getInstrInfo(); TRI = STI->getRegisterInfo(); SchedModel = STI->getSchedModel(); - TSchedModel.init(SchedModel, STI, TII); + TSchedModel.init(STI); MRI = &MF.getRegInfo(); MLI = &getAnalysis<MachineLoopInfo>(); Traces = &getAnalysis<MachineTraceMetrics>(); |