From b4eb90ce9bc43d9f3897bd13d6fd11f40f706b5a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 13 May 2019 16:55:06 -0700 Subject: wasm2js: precompute bitwise operations (#2101) This happens on e.g. an i32 load of a constant offset, then we have constant >> 2. --- test/wasm2js/ordering.2asm.js.opt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/wasm2js/ordering.2asm.js.opt') diff --git a/test/wasm2js/ordering.2asm.js.opt b/test/wasm2js/ordering.2asm.js.opt index 95384fdeb..1f13699e5 100644 --- a/test/wasm2js/ordering.2asm.js.opt +++ b/test/wasm2js/ordering.2asm.js.opt @@ -30,17 +30,17 @@ function asmFunc(global, env, buffer) { function foo($0) { $0 = $0 | 0; - return 1 | 0; + return 1; } function bar($0) { $0 = $0 | 0; - return 2 | 0; + return 2; } function baz($0) { $0 = $0 | 0; - return 3 | 0; + return 3; } FUNCTION_TABLE[1] = foo; -- cgit v1.2.3