[PATCH] D60966: [WebAssembly] Emit br_table for most switch instructions
Dan Gohman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 08:16:00 PDT 2019
sunfish added a comment.
The theory here is that br_table represents the performance characteristics of a jump table, while br_if represents the performance characteristics of a branch. In hardware, a small switch with 3 cases is often more efficient with a couple of conditional branches than a jump table.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60966/new/
https://reviews.llvm.org/D60966
More information about the llvm-commits
mailing list