[llvm] r227529 - This only needs TargetInstrInfo, not the specialized one.
Eric Christopher
echristo at gmail.com
Thu Jan 29 17:10:19 PST 2015
Author: echristo
Date: Thu Jan 29 19:10:18 2015
New Revision: 227529
URL: http://llvm.org/viewvc/llvm-project?rev=227529&view=rev
Log:
This only needs TargetInstrInfo, not the specialized one.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp?rev=227529&r1=227528&r2=227529&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp Thu Jan 29 19:10:18 2015
@@ -64,7 +64,7 @@ STATISTIC(NumCopiesInserted, "Number of
namespace {
class AArch64AdvSIMDScalar : public MachineFunctionPass {
MachineRegisterInfo *MRI;
- const AArch64InstrInfo *TII;
+ const TargetInstrInfo *TII;
private:
// isProfitableToTransform - Predicate function to determine whether an
@@ -268,7 +268,7 @@ AArch64AdvSIMDScalar::isProfitableToTran
return TransformAll;
}
-static MachineInstr *insertCopy(const AArch64InstrInfo *TII, MachineInstr *MI,
+static MachineInstr *insertCopy(const TargetInstrInfo *TII, MachineInstr *MI,
unsigned Dst, unsigned Src, bool IsKill) {
MachineInstrBuilder MIB =
BuildMI(*MI->getParent(), MI, MI->getDebugLoc(), TII->get(AArch64::COPY),
@@ -377,7 +377,7 @@ bool AArch64AdvSIMDScalar::runOnMachineF
DEBUG(dbgs() << "***** AArch64AdvSIMDScalar *****\n");
MRI = &mf.getRegInfo();
- TII = static_cast<const AArch64InstrInfo *>(mf.getSubtarget().getInstrInfo());
+ TII = mf.getSubtarget().getInstrInfo();
// Just check things on a one-block-at-a-time basis.
for (MachineFunction::iterator I = mf.begin(), E = mf.end(); I != E; ++I)
More information about the llvm-commits
mailing list