mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
This only needs TargetInstrInfo, not the specialized one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df3bf19853
commit
5e337ee512
@ -64,7 +64,7 @@ STATISTIC(NumCopiesInserted, "Number of cross-class copies inserted");
|
||||
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::isProfitableToTransform(const MachineInstr *MI) const {
|
||||
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::runOnMachineFunction(MachineFunction &mf) {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user