diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-12-21 13:19:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 13:19:18 -0800 |
commit | fdd4cb7b11d43c6ff200c9541f8567000a8d4bcd (patch) | |
tree | 36c6a991a1a6f0b288eec05bf9ec197ba6d7624d /src/ir/cost.h | |
parent | 0f41b0708384c1f5d85304d5ed94d9edd57d38c9 (diff) | |
download | binaryen-fdd4cb7b11d43c6ff200c9541f8567000a8d4bcd.tar.gz binaryen-fdd4cb7b11d43c6ff200c9541f8567000a8d4bcd.tar.bz2 binaryen-fdd4cb7b11d43c6ff200c9541f8567000a8d4bcd.zip |
LocalCSE: Consider pass options, both size and cost (#1840)
With this we can optimize redundant global accesses fairly well (at least locally; licm also works), see #1831
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index defd9413e..b64ca5110 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -17,6 +17,9 @@ #ifndef wasm_ir_cost_h #define wasm_ir_cost_h +#include <wasm.h> +#include <wasm-traversal.h> + namespace wasm { // Measure the execution cost of an AST. Very handwave-ey |