Replace some hacky code with the proper way to get at this data.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251848
91177308-0d34-0410-b5e6-
96231b3b80d8
void PPCVSXSwapRemoval::initialize(MachineFunction &MFParm) {
MF = &MFParm;
MRI = &MF->getRegInfo();
- TII = static_cast<const PPCInstrInfo*>(MF->getSubtarget().getInstrInfo());
+ TII = MF->getSubtarget<PPCSubtarget>().getInstrInfo();
// An initial vector size of 256 appears to work well in practice.
// Small/medium functions with vector content tend not to incur a