Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix table import size when no maximum is provided | Alon Zakai | 2016-12-07 | 6 | -0/+6 | |
| | ||||||
* | Update known test failures and waterfall revision (#854) | jgravelle-google | 2016-12-01 | 8 | -18/+20 | |
| | ||||||
* | Handle importing globals in s2wasm (#843) | jgravelle-google | 2016-11-30 | 2 | -0/+153 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle importing globals in s2wasm * Make importedGlobals a set of Names, make Names hashable * Revert "Make importedGlobals a set of Names, make Names hashable" This reverts commit 1d0ca7a5e3839b15ca60593330979864c9c3ed60. * Refactor relocation parsing to handle expressions directly * PR Feedback - Move comment where it belongs - Add comment about ownership to addRelocation - Remove do-nothing parseImportGlobal * Reword "imported globals" to "imported objects" - Flip isObjectImported to isObjectImplemented, for consistency * Add tests for s2wasm globals. Also implement import relocation expression handling * Simplify globals.s test * Fix memory leak of relocation * Use unique_ptr instead of delete in getRelocatableExpression | |||||
* | Fix regression from #850 (#851) | Alon Zakai | 2016-11-30 | 7 | -322/+556 | |
| | | | | | | * fix regression from #850 - it is not always safe to fold added offsets into load/store offsets, as the add wraps but offset does not * small refactoring to simplify asm2wasm pass invocation | |||||
* | Optimize added factors into load/store offsets (#850) | Alon Zakai | 2016-11-29 | 6 | -332/+476 | |
| | | | | | * optimize added factors into load/store offsets, removing the add * optimize offset of load/store of a constant into the constant | |||||
* | increase limit in RelooperJumpThreading (#847) | Alon Zakai | 2016-11-28 | 4 | -324/+324 | |
| | ||||||
* | fix a reordering bug in merge-blocks (#846) | Alon Zakai | 2016-11-25 | 2 | -16/+92 | |
| | ||||||
* | support assigns of f32 to HEAP64 in asm2wasm (#830) | Alon Zakai | 2016-11-07 | 5 | -1/+50 | |
| | ||||||
* | handle a label setting inside the if-body of a label value in ↵ | Alon Zakai | 2016-11-06 | 7 | -3073/+3182 | |
| | | | | RelooperJumpThreading | |||||
* | improve local simplication: simplify without if/block structure values ↵ | Alon Zakai | 2016-11-06 | 18 | -9314/+9454 | |
| | | | | before coalesce, so that coalesce can remove all copies, then do another pass of full simplification after it | |||||
* | add variants of simplify-locals with and without teeing and structural opts | Alon Zakai | 2016-11-05 | 8 | -0/+197 | |
| | ||||||
* | optimize booleans through i32.or | Alon Zakai | 2016-11-04 | 4 | -24/+46 | |
| | ||||||
* | remove-unused-brs after coalesce-locals | Alon Zakai | 2016-11-04 | 6 | -418/+360 | |
| | ||||||
* | Fixes fround of an unsigned integer (#821) | Alon Zakai | 2016-11-04 | 10 | -469/+215 | |
| | | | | | | | | * fix fround of unsigned * add testing for f32 ops, and remove a duplicate test (now that f32 is on by default in wasm, we don't need to check with and without PRECISE_F32) * update wasm.js and binaryen.js | |||||
* | Merge pull request #819 from WebAssembly/optimize-memory | Alon Zakai | 2016-11-01 | 5 | -3/+43 | |
|\ | | | | | Pack memory segments | |||||
| * | add a pass to optimize memory segments, and pack memory in asm2wasm | Alon Zakai | 2016-11-01 | 2 | -0/+40 | |
| | | ||||||
| * | add a --memory-base options to asm2wasm, to fix the memory base instead of ↵ | Alon Zakai | 2016-10-31 | 3 | -3/+3 | |
| | | | | | | | | depending on an import | |||||
* | | fix large f32 consts, fixes #817 (#820) | Alon Zakai | 2016-11-01 | 3 | -0/+14 | |
| | | ||||||
* | | Work around dot quirks related to updating node styles. Remove indirect call ↵ | Michael Bebenita | 2016-11-01 | 1 | -108/+77 | |
|/ | | | | edges as they greatly increase the size of the graph. (#818) | |||||
* | Optimize away copies through an if (#816) | Alon Zakai | 2016-10-31 | 8 | -1928/+2097 | |
| | ||||||
* | add an inlining pass (#814) | Alon Zakai | 2016-10-29 | 2 | -0/+189 | |
| | ||||||
* | optimize child blocks in merge-blocks when we drop values in them, they may ↵ | Alon Zakai | 2016-10-29 | 2 | -12/+44 | |
| | | | | have new subchild blocks | |||||
* | fix break value removal in merge-blocks: a br_if's type changes without a ↵ | Alon Zakai | 2016-10-29 | 1 | -8/+6 | |
| | | | | value, so finalize the node, and remove the drop | |||||
* | handle the case of a br_if whose value is used in merge-blocks | Alon Zakai | 2016-10-29 | 2 | -0/+105 | |
| | ||||||
* | merge adjacent br_ifs | Alon Zakai | 2016-10-27 | 2 | -0/+117 | |
| | ||||||
* | recreate simply ifs | Alon Zakai | 2016-10-27 | 8 | -351/+442 | |
| | ||||||
* | recurse in optimizeBoolean (#809) | Alon Zakai | 2016-10-27 | 4 | -12/+40 | |
| | ||||||
* | Set the type of the implicit blocks we use for a loop body in s2wasm (#810) | jgravelle-google | 2016-10-27 | 2 | -0/+21 | |
| | | | | | | | Loops are modeled in Binaryen IR as having a Block as a body. The block is added to module walkers and validated like a normal block. In s2wasm when we add the blocks, we need to make sure that the type of the loop body matches the type of the loop itself, or we run into issues. | |||||
* | optimize ne of 0 in a boolean context (#808) | Alon Zakai | 2016-10-27 | 8 | -68/+47 | |
| | ||||||
* | Code pushing (#807) | Alon Zakai | 2016-10-26 | 8 | -2194/+2753 | |
| | | | Push code forward, potentially letting it not execute | |||||
* | Conditionalize boolean operations based on cost (#805) | Alon Zakai | 2016-10-26 | 2 | -0/+523 | |
| | | | When we have expensive | expensive, and both are boolean, then we can execute one of them conditionally if it doesn't have side effects. | |||||
* | Optimize out bool & 1 (#804) | Alon Zakai | 2016-10-25 | 14 | -201/+290 | |
| | | | | | | * asm.js corrections to unit.asm.js test * optimize out bool&1 | |||||
* | Update s2wasm for reordered call_indirect (#802) | jgravelle-google | 2016-10-24 | 81 | -5477/+6863 | |
| | | | | | | | | | | | | | | | * Update s2wasm for reordered call_indirect https://reviews.llvm.org/D25708 fixed call_indirect for 0xc by reordering the operands. s2wasm needs to be aware of that too. * Update llvm_autogenerated tests * Update torture-s tests * run auto_update_tests * update handwritten dot_s test that had call_indirect with args | |||||
* | Adds a pass to print call graphs in .dot (graphviz) format. (#794) | Michael Bebenita | 2016-10-20 | 2 | -0/+2910 | |
| | ||||||
* | Add priority to copies on backedges (#791) | Alon Zakai | 2016-10-20 | 8 | -7652/+7760 | |
| | | | | | | | | * add a coalesce-locals test for costly backedges * add script to strip local names out, for convenient diffing * prioritize backedge copies | |||||
* | Optimize to i64.store[less] (#792) | Alon Zakai | 2016-10-20 | 2 | -0/+16 | |
| | ||||||
* | Add support for i64.store[N] (#789) | jgravelle-google | 2016-10-19 | 2 | -0/+26 | |
| | | | | | | | | | | | | * Add support for i64.store[N] Previously storing i64 in the interpreter assumed an 8byte store. Stores like i64.store8 would then use the special-case i64 storing code, when they could just use the i32.store8 code. * Add printf test for interpreter * Update wasm.js | |||||
* | Pass options (#788) | Alon Zakai | 2016-10-18 | 4 | -18/+57 | |
| | | | | * add PassOptions structure, and use it for new -Os param to wasm-opt | |||||
* | add table and memory contents to metrics (#787) | Alon Zakai | 2016-10-18 | 2 | -0/+18 | |
| | ||||||
* | reorder locals after simplify-locals, to remove unused locals before ↵ | Alon Zakai | 2016-10-16 | 6 | -7468/+7386 | |
| | | | | coalesce-locals, making it much faster (#783) | |||||
* | optimize out i32.and of -1 | Alon Zakai | 2016-10-15 | 5 | -145/+97 | |
| | ||||||
* | optimize loads and stores that mask their values, as the load/store ↵ | Alon Zakai | 2016-10-15 | 4 | -378/+314 | |
| | | | | operation masks itself | |||||
* | Merge pull request #778 from WebAssembly/passe | Alon Zakai | 2016-10-14 | 25 | -1877/+354 | |
|\ | | | | | Add remove-unused-functions to default passes | |||||
| * | run remove-unused-functions by default | Alon Zakai | 2016-10-14 | 25 | -1877/+354 | |
| | | ||||||
* | | Import memory instead of defining/exporting it when using emscripten glue (#777) | Derek Schuff | 2016-10-14 | 83 | -166/+83 | |
|/ | | | | | The emscripten JS module code creates the memory using the native wasm APIs, and imports that into the wasm module. | |||||
* | Do not use exported memory as a root set of RemoveUnusedFunctions pass (#763) | Taiju Tsuiki | 2016-10-14 | 2 | -0/+2 | |
| | | | | | | | | * Do not use exported memory as a root set of RemoveUnusedFunctions pass RemoveUnusedFunctions pass of wasm-opt fails when the memory is exported. That's due to a wrong root set handling on the exported symbols. This CL fixes the failure by ignoring non-function exported symbol. | |||||
* | Merge pull request #775 from WebAssembly/sl-fix | Alon Zakai | 2016-10-13 | 2 | -27/+97 | |
|\ | | | | | Fix simplify-locals when adding a value to a br_if | |||||
| * | when simplify-locals give br_if a value, the br_if also returns it, so it ↵ | Alon Zakai | 2016-10-13 | 2 | -27/+97 | |
| | | | | | | | | must be dropped | |||||
* | | handle globals in dce | Alon Zakai | 2016-10-13 | 2 | -0/+10 | |
|/ | ||||||
* | Don't create a memory section for an imported memory; fixes #772 (#773) | Benjamin Bouvier | 2016-10-13 | 3 | -0/+29 | |
| |