Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | coalesce-locals code cleanup | Alon Zakai | 2016-09-14 | 1 | -3/+3 |
| | |||||
* | fix switch traversal order | Alon Zakai | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | fix getCopies return type, so that we take into account the full range of values | Alon Zakai | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | when optimizing a block return value, replacing the sunk set with the value ↵ | Alon Zakai | 2016-09-14 | 1 | -5/+14 |
| | | | | is only possible if the break is unconditional; if it is condition, we must tee the value so that if the break condition is false and we do not jump, then we have the new value in the local on the line after it | ||||
* | avoid threading jumps when there is irreducible control flow, as it is hard ↵ | Alon Zakai | 2016-09-14 | 1 | -22/+97 |
| | | | | to know if it is safe to do so | ||||
* | drop if-else arms as necessary | Alon Zakai | 2016-09-13 | 1 | -3/+15 |
| | |||||
* | add ExtractFunction pass | Alon Zakai | 2016-09-13 | 4 | -0/+49 |
| | |||||
* | fix if finalize() | Alon Zakai | 2016-09-13 | 1 | -1/+2 |
| | |||||
* | update br type when turning it into a br_if in remove-unused-brs | Alon Zakai | 2016-09-13 | 2 | -0/+5 |
| | |||||
* | fix bug with turning if into br_if without checking for reordering dangers | Alon Zakai | 2016-09-12 | 1 | -10/+16 |
| | |||||
* | simple jump threading | Alon Zakai | 2016-09-12 | 1 | -3/+74 |
| | |||||
* | thread relooper jumps | Alon Zakai | 2016-09-12 | 5 | -0/+179 |
| | |||||
* | clean up database-ensuring code using the new prepareToRun method | Alon Zakai | 2016-09-12 | 1 | -9/+6 |
| | |||||
* | refactor pass hooks, creating a proper way to run code before a pass is run | Alon Zakai | 2016-09-12 | 6 | -218/+20 |
| | |||||
* | fix up types in remove-unused-brs at the first opportunity, not later | Alon Zakai | 2016-09-12 | 1 | -16/+20 |
| | |||||
* | remove final elements in vacuum carefully: we must preserve a return value ↵ | Alon Zakai | 2016-09-11 | 2 | -14/+41 |
| | | | | if there is one | ||||
* | validate in debug mode in passRunner | Alon Zakai | 2016-09-11 | 1 | -5/+14 |
| | |||||
* | run another optimize-expressions at the end of asm2wasm | Alon Zakai | 2016-09-10 | 1 | -2/+4 |
| | |||||
* | refactor an optimizeBoolean method | Alon Zakai | 2016-09-10 | 3 | -50/+24 |
| | |||||
* | optimize if-else to br_if when in a block | Alon Zakai | 2016-09-10 | 2 | -6/+51 |
| | |||||
* | optimize eqz^2 in select and br_if | Alon Zakai | 2016-09-10 | 1 | -8/+23 |
| | |||||
* | optimization comment | Alon Zakai | 2016-09-10 | 1 | -1/+1 |
| | |||||
* | sort locals by number of total copies | Alon Zakai | 2016-09-10 | 1 | -11/+77 |
| | |||||
* | take into account removed copies even when number of locals is the same, in ↵ | Alon Zakai | 2016-09-09 | 1 | -5/+46 |
| | | | | coalesce-locals | ||||
* | optimize loop endings in RemoveUnusedBrs | Alon Zakai | 2016-09-09 | 3 | -2/+182 |
| | | | | | * rotate an if near the end of a loop as it can let a break out flow naturally and be removable * turn a br_if into an if it allows such an optimization in cases where it helps remove other structures | ||||
* | enable udivmoddi4 opts in asm2wasm | Alon Zakai | 2016-09-08 | 1 | -16/+14 |
| | |||||
* | autodrop if body if no else | Alon Zakai | 2016-09-07 | 2 | -0/+10 |
| | |||||
* | properly handle blocks with return values in vacuum - we cannot remove their ↵ | Alon Zakai | 2016-09-07 | 1 | -3/+22 |
| | | | | final value directly, we can only do that if it is dropped, from the drop | ||||
* | vacuum drops better | Alon Zakai | 2016-09-07 | 1 | -8/+21 |
| | |||||
* | do a first pass in SimplifyLocals that focuses on single-use locals | Alon Zakai | 2016-09-07 | 1 | -12/+36 |
| | |||||
* | flip select-eqz when possible | Alon Zakai | 2016-09-07 | 1 | -2/+13 |
| | |||||
* | optimize out a set of a get of a global | Alon Zakai | 2016-09-07 | 1 | -0/+8 |
| | |||||
* | track globals in EffectAnalyzer | Alon Zakai | 2016-09-07 | 1 | -4/+22 |
| | |||||
* | optimize loads+shifts into signed loads | Alon Zakai | 2016-09-07 | 1 | -0/+27 |
| | |||||
* | optimize out eqz^2 | Alon Zakai | 2016-09-07 | 2 | -0/+30 |
| | |||||
* | add option to remove duplicate funcs by name | Alon Zakai | 2016-09-07 | 1 | -0/+10 |
| | |||||
* | use eqz as an optimization | Alon Zakai | 2016-09-07 | 2 | -2/+40 |
| | |||||
* | ensure we create the OptimizeInstructions database on demand, avoiding ↵ | Alon Zakai | 2016-09-07 | 3 | -3/+43 |
| | | | | global ctors | ||||
* | make sure to use the right order of operations when loading composite ints ↵ | Alon Zakai | 2016-09-07 | 1 | -3/+6 |
| | | | | in binary format reading | ||||
* | if we don't recognize the platform in colors.h, just do nothing for colors | Alon Zakai | 2016-09-07 | 1 | -0/+9 |
| | |||||
* | new validation checks for upcoming spec tests | Alon Zakai | 2016-09-07 | 2 | -5/+34 |
| | |||||
* | additional parsing support for new spec things | Alon Zakai | 2016-09-07 | 1 | -22/+74 |
| | |||||
* | new export syntax in spec repo | Alon Zakai | 2016-09-07 | 3 | -23/+53 |
| | |||||
* | new import syntax in spec repo | Alon Zakai | 2016-09-07 | 2 | -31/+40 |
| | |||||
* | Add a ReFinalize helper, and use that to properly handle asm.js imports ↵ | Alon Zakai | 2016-09-07 | 2 | -9/+53 |
| | | | | whose return value is polymorphic | ||||
* | support HEAP8[x | 0| notation in asm2wasm | Alon Zakai | 2016-09-07 | 1 | -1/+3 |
| | |||||
* | import memoryBase and tableBase | Alon Zakai | 2016-09-07 | 3 | -11/+29 |
| | |||||
* | import table | Alon Zakai | 2016-09-07 | 3 | -17/+47 |
| | |||||
* | import memory #684 | Alon Zakai | 2016-09-07 | 3 | -6/+41 |
| | |||||
* | refactor reallocBuffer assignment location, it is not technically part of ↵ | Alon Zakai | 2016-09-07 | 1 | -6/+8 |
| | | | | mergeMemory |