[llvm] [CodeGen] Fix lpad padding at section start after empty block (PR #112595)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 18:19:43 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();
----------------
WenleiHe wrote:
Is this line intentional? I thought you want to check before setting this flag (i.e. line 392).
https://github.com/llvm/llvm-project/pull/112595
More information about the llvm-commits
mailing list