mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Use MI.isCopy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c66756ba16
commit
84d499a698
@ -1058,10 +1058,8 @@ bool X86FastISel::X86SelectBranch(const Instruction *I) {
|
||||
const MachineInstr &MI = *RI;
|
||||
|
||||
if (MI.definesRegister(Reg)) {
|
||||
unsigned Src, Dst, SrcSR, DstSR;
|
||||
|
||||
if (getInstrInfo()->isMoveInstr(MI, Src, Dst, SrcSR, DstSR)) {
|
||||
Reg = Src;
|
||||
if (MI.isCopy()) {
|
||||
Reg = MI.getOperand(1).getReg();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user