You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that call.without.effects doesn't set a branchesOut effect. Although call.without.effects assumes that the call body has no effects, the return_call does have the effect of branching out which isn't reflected correctly here.
In the following module,
$falways returns1.But when optimized with
bin/wasm-opt -all --vacuum a.wat -S -o -(from the current main), we end up with the following module which returns 0:The problem is that call.without.effects doesn't set a branchesOut effect. Although call.without.effects assumes that the call body has no effects, the return_call does have the effect of branching out which isn't reflected correctly here.