diff options
author | Craig Topper <craig.topper@intel.com> | 2019-04-24 06:48:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-04-24 06:48:31 +0000 |
commit | 1e413ffa7bc8939af283ab54a5dfe7ede54b1ec7 (patch) | |
tree | 49e3a07e721377d92cff5ba2ad416c79da43debb /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 74780852dc76426058e465279a86a863b8c989e3 (diff) | |
download | bcm5719-llvm-1e413ffa7bc8939af283ab54a5dfe7ede54b1ec7.tar.gz bcm5719-llvm-1e413ffa7bc8939af283ab54a5dfe7ede54b1ec7.zip |
[Mips][CodeGen] Remove MachineFunction::setSubtarget. Change Mips to just copy the subtarget from the MachineFunction instead of recalculating it.
Summary:
The MachineFunction should have been created with the correct subtarget. As
long as there is no way to change it, MipsTargetMachine can just capture it
directly from the MachineFunction without calling getSubtargetImpl again.
While there, const correct the Subtarget pointer to avoid a const_cast.
I believe the Mips16Subtarget and NoMips16Subtarget members are never used, but
I'll leave there removal for a separate patch.
Reviewers: echristo, atanasyan
Reviewed By: atanasyan
Subscribers: sdardis, arichardson, hiraditya, jrtc27, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60936
llvm-svn: 359071
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions