diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2018-08-30 14:32:47 +0000 |
---|---|---|
committer | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2018-08-30 14:32:47 +0000 |
commit | af96112ec625e303fe5d62cd85f9a778d492fd8e (patch) | |
tree | 62025d86bc3f2393711d68337ba823f1bb60f437 /llvm/lib/Target/Mips/Mips16InstrInfo.cpp | |
parent | 35617ed4cb81ca442a519fd4134ff28b90f06655 (diff) | |
download | bcm5719-llvm-af96112ec625e303fe5d62cd85f9a778d492fd8e.tar.gz bcm5719-llvm-af96112ec625e303fe5d62cd85f9a778d492fd8e.zip |
Make TargetInstrInfo::isCopyInstr return true for regular COPY-instructions
..Move all target-dependent checks into new isCopyInstrImpl method.
This change allows us to treat MoveReg-type instructions and generic
COPY instruction in the same way
Differential Revision: https://reviews.llvm.org/D49913
llvm-svn: 341072
Diffstat (limited to 'llvm/lib/Target/Mips/Mips16InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/Mips16InstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/Mips16InstrInfo.cpp b/llvm/lib/Target/Mips/Mips16InstrInfo.cpp index 219f1ad3358..efebc99b5da 100644 --- a/llvm/lib/Target/Mips/Mips16InstrInfo.cpp +++ b/llvm/lib/Target/Mips/Mips16InstrInfo.cpp @@ -97,9 +97,9 @@ void Mips16InstrInfo::copyPhysReg(MachineBasicBlock &MBB, MIB.addReg(SrcReg, getKillRegState(KillSrc)); } -bool Mips16InstrInfo::isCopyInstr(const MachineInstr &MI, - const MachineOperand *&Src, - const MachineOperand *&Dest) const { +bool Mips16InstrInfo::isCopyInstrImpl(const MachineInstr &MI, + const MachineOperand *&Src, + const MachineOperand *&Dest) const { if (MI.isMoveReg()) { Dest = &MI.getOperand(0); Src = &MI.getOperand(1); |