void ARM64BranchRelaxation::adjustBlockOffsets(MachineBasicBlock *Start) { unsigned PrevNum = Start->getNumber(); MachineFunction::iterator MBBI = Start, E = MF->end(); for (++MBBI; MBBI != E; ++MBBI) { MachineBasicBlock *MBB = MBBI; unsigned Num = MBB->getNumber(); if (!Num) // block zero is never changed from offset zero. continue; // Get the offset and known bits at the end of the layout predecessor. // Include the alignment of the current block. unsigned LogAlign = MBBI->getAlignment(); BlockInfo[Num].Offset = BlockInfo[PrevNum].postOffset(LogAlign); PrevNum = Num; } }