[llvm] [CodeGen] Fix lpad padding at section start after empty block (PR #112595)
Fabian Parzefall via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 09:38:03 PDT 2024
================
@@ -383,13 +383,28 @@ void MachineFunction::RenumberBlocks(MachineBasicBlock *MBB) {
/// and the SectionID's are assigned to MBBs.
void MachineFunction::assignBeginEndSections() {
front().setIsBeginSection();
+ front().setIsFirstNonEmptyBBInSection();
----------------
pzfl wrote:
Good catch, thanks! I think I was originally under the assumption that the first block has to be non-empty. But you are right, this should be removed.
https://github.com/llvm/llvm-project/pull/112595
More information about the llvm-commits
mailing list