Skip to content

Commit

Permalink
[PPC64LE] Properly initialize instr-info in PPCVSXSwapRemoval pass
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wschmidt-ibm committed Nov 2, 2015
1 parent 9e9408f commit 5ae08fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ struct PPCVSXSwapRemoval : public MachineFunctionPass {
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
Expand Down

0 comments on commit 5ae08fa

Please sign in to comment.