mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
ARM: Range based for-loop over block predecessors.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -921,9 +921,8 @@ bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) {
|
|||||||
HighLatencyCPSR = false;
|
HighLatencyCPSR = false;
|
||||||
|
|
||||||
// Check predecessors for the latest CPSRDef.
|
// Check predecessors for the latest CPSRDef.
|
||||||
for (MachineBasicBlock::pred_iterator
|
for (auto *Pred : MBB.predecessors()) {
|
||||||
I = MBB.pred_begin(), E = MBB.pred_end(); I != E; ++I) {
|
const MBBInfo &PInfo = BlockInfo[Pred->getNumber()];
|
||||||
const MBBInfo &PInfo = BlockInfo[(*I)->getNumber()];
|
|
||||||
if (!PInfo.Visited) {
|
if (!PInfo.Visited) {
|
||||||
// Since blocks are visited in RPO, this must be a back-edge.
|
// Since blocks are visited in RPO, this must be a back-edge.
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user