mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +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:
@ -1058,10 +1058,8 @@ bool X86FastISel::X86SelectBranch(const Instruction *I) {
|
|||||||
const MachineInstr &MI = *RI;
|
const MachineInstr &MI = *RI;
|
||||||
|
|
||||||
if (MI.definesRegister(Reg)) {
|
if (MI.definesRegister(Reg)) {
|
||||||
unsigned Src, Dst, SrcSR, DstSR;
|
if (MI.isCopy()) {
|
||||||
|
Reg = MI.getOperand(1).getReg();
|
||||||
if (getInstrInfo()->isMoveInstr(MI, Src, Dst, SrcSR, DstSR)) {
|
|
||||||
Reg = Src;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user