mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Cosmetic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2036,13 +2036,10 @@ LocalRewriter::RewriteMBB(LiveIntervals *LIs,
|
|||||||
// If this is an asm, and PhysReg is used elsewhere as an earlyclobber
|
// If this is an asm, and PhysReg is used elsewhere as an earlyclobber
|
||||||
// operand, we can't also use it as an input. (Outputs always come
|
// operand, we can't also use it as an input. (Outputs always come
|
||||||
// before inputs, so we can stop looking at i.)
|
// before inputs, so we can stop looking at i.)
|
||||||
if (MI.getOpcode()==TargetOpcode::INLINEASM) {
|
if (MI.isInlineAsm()) {
|
||||||
for (unsigned k=0; k<i; ++k) {
|
for (unsigned k=0; k<i; ++k) {
|
||||||
MachineOperand &MOk = MI.getOperand(k);
|
MachineOperand &MOk = MI.getOperand(k);
|
||||||
if (!MOk.isReg() || MOk.getReg()==0)
|
if (MOk.isReg() && MOk.getReg()==PhysReg && MOk.isEarlyClobber()) {
|
||||||
continue;
|
|
||||||
unsigned VirtRegk = MOk.getReg();
|
|
||||||
if (VirtRegk == PhysReg && MOk.isEarlyClobber()) {
|
|
||||||
CanReuse = false;
|
CanReuse = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user