llvm-project
d6ee7b2c - [CodeGen] Don't run BasicBlockSections for BB address map alone (#243978)

Commit
1 day ago
[CodeGen] Don't run BasicBlockSections for BB address map alone (#243978) When only the BB address map was enabled, the BasicBlockSections pass only renumbered basic blocks so that block IDs could be derived implicitly from block numbers. The BB address map now emits each block's ID explicitly (MBB.getBBID()) and walks blocks in layout order, so the renumbering is no longer needed. Remove it and stop scheduling the BasicBlockSections pass for the BB address map alone; it now only runs for basic block sections or function splitting. `handleBBSections` and `handleBBAddrMap` are thereby removed. MachineBlockHashInfo is still scheduled at the same position for the BB address map so the emitted hashes are unchanged. The only output difference is in the names of local .LBB labels, which no longer follow layout order; update the affected tests.
Author
Parents
Loading