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

https://llvm.org/docs/BranchWeightMetadata.html#other mentions _Other 
terminator instructions are not allowed to contain Branch Weight Metadata_, 
indicating `callbr` instruction shouldn't have branch weight metadata attached.

Is there a reason why branch weight `!prof` cannot be attached to `callbr`?

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