mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 00:41:32 +00:00
Utilize Binaryen's -O4
When specifying -O3 or -Oz, asc now automatically increases the optimize level to 4, then including costly non-LLVM optimizations for blocky code, in turn achieving similar results as an LLVM-based generator.
This commit is contained in:
@ -180,31 +180,31 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
(loop $continue|3
|
||||
(br_if $continue|3
|
||||
(if (result i32)
|
||||
(block (result i32)
|
||||
(set_global $while/n
|
||||
(i32.sub
|
||||
(tee_local $0
|
||||
(get_global $while/n)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(get_local $0)
|
||||
(set_global $while/n
|
||||
(i32.sub
|
||||
(tee_local $0
|
||||
(get_global $while/n)
|
||||
)
|
||||
(block (result i32)
|
||||
(set_global $while/m
|
||||
(i32.add
|
||||
(get_global $while/m)
|
||||
(i32.const 1)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $0)
|
||||
(block
|
||||
(set_global $while/m
|
||||
(i32.add
|
||||
(get_global $while/m)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(set_local $0
|
||||
(get_global $while/m)
|
||||
)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(br_if $continue|3
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.ne
|
||||
|
Reference in New Issue
Block a user