================
@@ -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:

Pessimistic overestimate is actually worse for some applications of this 
function. For what I am doing now it may result prefetching memory far beyond 
the program. I believe our estimates shall be correct except for inline asm...

https://github.com/llvm/llvm-project/pull/127142
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to