summaryrefslogtreecommitdiff
path: root/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast
Commit message (Collapse)AuthorAgeFilesLines
* memory.copy: use nop reductions only for ignoreImplicitTraps (#3074)Max Graey2020-08-241-365/+0
| | | | | | | | | According to changes in spec: WebAssembly/bulk-memory-operations#124 WebAssembly/bulk-memory-operations#145 we unfortunately can't fold to nop even for memory.copy(x, y, 0). So this PR revert all reductions to nop but do this only under ignoreImplicitTraps flag
* Massive renaming (#1855)Thomas Lively2019-01-071-62/+62
| | | | | | Automated renaming according to https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329.
* Return to more structured type rules for block and if (#1148)Alon Zakai2017-09-051-0/+38
| | | | | | | | * if a block has a concrete final element (or a break with a value), then even if it has an unreachable child, keep it with that concrete type. this means we no longe allow the silly case of a block with an unreachable in the middle and a concrete as the final element while the block is unreachable - after this change, the block would have the type of the final element * if an if has a concrete element in one arm, make it have that type as a result, even if the if condition is unreachable, to parallel block * make type rules for brs and switches simpler, ignore whether they are reachable or not. whether they are dead code should not affect how they influence other types in our IR.
* do not swap elements in conditionalizeExpensiveOnBitwise if they invalidate ↵Alon Zakai (kripken)2017-07-291-0/+64
| | | | each other - it is not enough to check side effects, we must check the interaction as well
* Support new result syntax for if/loop/block (#1047)Sam Clegg2017-06-121-3/+3
| | | | | | Support both syntax formats in input since the old spec tests still need to be parsable.
* Improve handling of implicit traps (#898)Alon Zakai2017-02-061-0/+263
* add --ignore-implicit-traps option, and by default do not ignore them, to properly preserve semantics * implicit traps can be reordered, but are side effects and should not be removed * add testing for --ignore-implicit-traps