summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2015-11-02 22:43:57 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2015-11-02 22:43:57 +0000
commit8ed7cec1709a9244ab6cd841889db4abb5cb3556 (patch)
treeb1bc3db1fbcd8f2a41638052a16b4a377e2ad862 /llvm/lib/Target/PowerPC
parent9dbf62f9272d0230f333b534742dbbc16409ea2f (diff)
downloadbcm5719-llvm-8ed7cec1709a9244ab6cd841889db4abb5cb3556.tar.gz
bcm5719-llvm-8ed7cec1709a9244ab6cd841889db4abb5cb3556.zip
[PPC64LE] Properly initialize instr-info in PPCVSXSwapRemoval pass
Replace some hacky code with the proper way to get at this data. No functional change. llvm-svn: 251848
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
index 723121279ad..e86dbbab126 100644
--- a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
+++ b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
@@ -220,7 +220,7 @@ public:
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
OpenPOWER on IntegriCloud