[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 22:53:31 PDT 2025


================
@@ -2608,6 +2612,21 @@ void WebAssemblyCFGStackify::rewriteDepthImmediates(MachineFunction &MF) {
         Stack.push_back(std::make_pair(&MBB, &MI));
         break;
 
+      case WebAssembly::BR_IF: {
+        // this is the last place where we can easily calculate the branch
+        // probabilities. we do not emit scf-ifs, therefore, only br_ifs have
----------------
aheejin wrote:

What is `sci-if`? It looks like some mlir construct, right? Given that we don't have mlir support, I guess only `if` would be sufficient?

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


More information about the llvm-commits mailing list