mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Convert EXTRACT_SUBREG to COPY when emitting machine instrs.
EXTRACT_SUBREG no longer appears as a machine instruction. Use COPY instead. Add isCopy() checks in many places using isMoveInstr() and isExtractSubreg(). The isMoveInstr hook will be removed later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,8 +50,7 @@ bool ProcessImplicitDefs::CanTurnIntoImplicitDef(MachineInstr *MI,
|
||||
return true;
|
||||
|
||||
switch(OpIdx) {
|
||||
case 1: return (MI->isExtractSubreg() || MI->isCopy()) &&
|
||||
MI->getOperand(0).getSubReg() == 0;
|
||||
case 1: return MI->isCopy() && MI->getOperand(0).getSubReg() == 0;
|
||||
case 2: return MI->isSubregToReg() && MI->getOperand(0).getSubReg() == 0;
|
||||
default: return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user