diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-04-23 21:30:30 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2019-04-23 21:30:30 +0000 |
commit | b9f282d384fc9b94734ffdf5e505b772a889b214 (patch) | |
tree | 5e746f5fd877a49ba60356da4cf061a2f4986491 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a746f2b73c39c2043cb75cd4210f87c2b3e347cc (diff) | |
download | bcm5719-llvm-b9f282d384fc9b94734ffdf5e505b772a889b214.tar.gz bcm5719-llvm-b9f282d384fc9b94734ffdf5e505b772a889b214.zip |
[WebAssembly] Emit br_table for most switch instructions
Summary:
Always convert switches to br_tables unless there is only one case,
which is equivalent to a simple branch. This reduces code size for wasm,
and we defer possible jump table optimizations to the VM.
Addresses PR41502.
Reviewers: kripken, sunfish
Subscribers: dschuff, sbc100, jgravelle-google, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60966
llvm-svn: 359038
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions