[llvm] [TRE] Adjust function entry count (PR #143987)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 17 13:53:03 PDT 2025
================
@@ -746,6 +770,17 @@ bool TailRecursionEliminator::eliminateCall(CallInst *CI) {
CI->eraseFromParent(); // Remove call.
DTU.applyUpdates({{DominatorTree::Insert, BB, HeaderBB}});
++NumEliminated;
+ if (OrigEntryBBFreq) {
+ assert(F.getEntryCount().has_value());
+ auto It = OriginalBBFreqs.find(BB);
+ assert(It != OriginalBBFreqs.end());
----------------
mtrofin wrote:
done
https://github.com/llvm/llvm-project/pull/143987
More information about the llvm-commits
mailing list