Skip to content

Instantly share code, notes, and snippets.

@denismerigoux
Last active August 9, 2017 21:57
Show Gist options
  • Save denismerigoux/69fffd880dbd53253a1506eea6ab43df to your computer and use it in GitHub Desktop.
Save denismerigoux/69fffd880dbd53253a1506eea6ab43df to your computer and use it in GitHub Desktop.
Diverse Cretonne stats for translated WASM modules
Setup: the modules are translated into Cretonne IL using wasm2cretonne and the dummy runtime,
then a full-fledge context is created (cfg, dominator tree, loop analysis) and the LICM pass
is run.
===== cv-wasm.wasm ==========
Loops: 16,978
Ebbs partially in a loop: 13,229
Ebb entirely in loop: 64,909
Ebb total: 162,640
Splits during analysis: 8
Instructions: 2,820,514
Instructions moved by LICM: 313,880 (287,858 consts)
======= tanks.wasm ==========
Loops: 15,383
Ebbs partially in a loop: 11,410
Ebb entirely in loop: 61,735
Ebb total: 343,455
Splits during analysis: 52
Instructions: 5,299,451
Instructions moved by LICM: 416,941 (339,890 consts)
========= AngryBots.wasm =======
Loops: 16,604
Ebbs partially in a loop: 18,390
Ebb entirely in loop: 67,846
Ebb total: 302,251
Splits during analysis: 130
Instructions: 5,341,115
Instructions moved by LICM: 404,818 (354,098 consts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment