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

It makes sense to move them to `CallBase`. Will need to construct a test case 
(possibly based on 
https://github.com/llvm/llvm-project/blob/main/clang/test/CodeGen/asm-goto.c)
- The difference between 1) current patch and 2) moving this to 'CallBase' and 
calling `updateProfWeight` on a `CallBase` is that, branch weight of 
terminating instruction `callbr` 
([lowered](https://llvm.org/docs/LangRef.html#callbr-instruction) from inline 
assembly 
[goto](https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#GotoLabels)) will 
also be updated. 

https://github.com/llvm/llvm-project/pull/83809
_______________________________________________
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