diff options
Diffstat (limited to 'src/wasm-stack.h')
-rw-r--r-- | src/wasm-stack.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-stack.h b/src/wasm-stack.h index 03ec4eef5..1f66212ad 100644 --- a/src/wasm-stack.h +++ b/src/wasm-stack.h @@ -148,6 +148,11 @@ private: InsertOrderedMap<Type, Index> scratchLocals; void countScratchLocals(); void setScratchLocals(); + + // local.get, local.tee, and glboal.get expressions that will be followed by + // tuple.extracts. We can optimize these by getting only the local for the + // extracted index. + std::unordered_map<Expression*, Index> extractedGets; }; // Takes binaryen IR and converts it to something else (binary or stack IR) |