bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 577 forks source link

aot compiler: propagate const-ness by ourselves #3567

Closed yamt closed 1 week ago

yamt commented 1 week ago

aot_load_const_from_table() hides the const-ness of the value and prevents optimizations like https://github.com/bytecodealliance/wasm-micro-runtime/pull/3552.

this commit makes the aot compiler tracks the const-ness of the value directly in the AOTValue and enables the above mentioned optimization for XIP.

yamt commented 1 week ago

i have no idea about the CI failure.

wenyongh commented 1 week ago

i have no idea about the CI failure.

Seems like Github issue, I re-ran it.

TianlongLiang commented 1 week ago

LGTM