[llvm-branch-commits] [llvm] [Inline][PGO] After inline, update profile for invoke instruction in both cloned instruction in the caller and original callee (PR #83809)

David Li via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 4 15:51:40 PST 2024


================
@@ -918,6 +918,18 @@ LandingPadInst *InvokeInst::getLandingPadInst() const {
   return cast<LandingPadInst>(getUnwindDest()->getFirstNonPHI());
 }
 
+void InvokeInst::updateProfWeight(uint64_t S, uint64_t T) {
----------------
david-xl wrote:

should this be moved to CallBase?

https://github.com/llvm/llvm-project/pull/83809


More information about the llvm-branch-commits mailing list