mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Fix loop conditionals (MO.isDef() asserts that it's a reg) and
move some constraints around. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb59229a4a
commit
f762fbe4fa
@ -122,7 +122,8 @@ bool ARMFastISel::DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR) {
|
||||
// Look to see if our OptionalDef is defining CPSR or CCR.
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
if (MO.isDef() && MO.isReg() && MO.getReg() == ARM::CPSR)
|
||||
if (!MO.isReg() || !MO.isDef()) continue;
|
||||
if (MO.getReg() == ARM::CPSR)
|
||||
*CPSR = true;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user