llvm.org GIT mirror llvm / 15c8c33
Merge in r114506. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_28@115101 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
13881388
13891389 // Check that CPSR isn't set between the comparison instruction and the one we
13901390 // want to change.
1391 MachineBasicBlock::const_iterator I = CmpInstr, E = MI;
1391 MachineBasicBlock::const_iterator I = CmpInstr, E = MI,
1392 B = MI->getParent()->begin();
13921393 --I;
13931394 for (; I != E; --I) {
13941395 const MachineInstr &Instr = *I;
14021403 if (MO.getReg() == ARM::CPSR)
14031404 return false;
14041405 }
1406
1407 if (I == B)
1408 // The 'and' is below the comparison instruction.
1409 return false;
14051410 }
14061411
14071412 // Set the "zero" bit in CPSR.