[llvm-branch-commits] [llvm] [AMDGPU] Respect MBB alignment in the getFunctionCodeSize() (PR #127142)
    Stanislav Mekhanoshin via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Fri Feb 14 11:01:54 PST 2025
    
    
  
================
@@ -212,6 +212,8 @@ uint64_t SIProgramInfo::getFunctionCodeSize(const MachineFunction &MF) {
   uint64_t CodeSize = 0;
 
   for (const MachineBasicBlock &MBB : MF) {
+    CodeSize = alignTo(CodeSize, MBB.getAlignment());
----------------
rampitec wrote:
Thanks. Added comment.
https://github.com/llvm/llvm-project/pull/127142
    
    
More information about the llvm-branch-commits
mailing list