nalmt opened PR #1391 from pathological_case_951
to master
:
To fix this case that may take forever to compile (issue #951):
function %a() {
ebb477777777:
}We decide to define a maximum threshold for the number of ebbs in functions.
Based on a large WASM program (https://github.com/mozilla/perf-automation/blob/master/benchmarks/wasm-misc/AngryBots.wasm), its IR functions does not exceed 1414 ebbs.
A number 100 times greater seems (currently) enough to define our maximum threshold.static MAX_EBBS_IN_A_FUNCTION: u32 = 100000;
if ebb_num.as_u32() > MAX_EBBS_IN_A_FUNCTION {
return Err(self.error("too many ebbs"));
}
nalmt requested bnjbvr for a review on PR #1391.
nalmt updated PR #1391 from pathological_case_951
to master
:
To fix this case that may take forever to compile (issue #951):
function %a() {
ebb477777777:
}We decide to define a maximum threshold for the number of ebbs in functions.
Based on a large WASM program (https://github.com/mozilla/perf-automation/blob/master/benchmarks/wasm-misc/AngryBots.wasm), its IR functions does not exceed 1414 ebbs.
A number 100 times greater seems (currently) enough to define our maximum threshold.static MAX_EBBS_IN_A_FUNCTION: u32 = 100000;
if ebb_num.as_u32() > MAX_EBBS_IN_A_FUNCTION {
return Err(self.error("too many ebbs"));
}
nalmt updated PR #1391 from pathological_case_951
to master
:
To fix this case that may take forever to compile (issue #951):
function %a() {
ebb477777777:
}We decide to define a maximum threshold for the number of ebbs in functions.
Based on a large WASM program (https://github.com/mozilla/perf-automation/blob/master/benchmarks/wasm-misc/AngryBots.wasm), its IR functions does not exceed 1414 ebbs.
A number 100 times greater seems (currently) enough to define our maximum threshold.static MAX_EBBS_IN_A_FUNCTION: u32 = 100000;
if ebb_num.as_u32() > MAX_EBBS_IN_A_FUNCTION {
return Err(self.error("too many ebbs"));
}
nalmt updated PR #1391 from pathological_case_951
to master
:
To fix this case that may take forever to compile (issue #951):
function %a() {
ebb477777777:
}We decide to define a maximum threshold for the number of ebbs in functions.
Based on a large WASM program (https://github.com/mozilla/perf-automation/blob/master/benchmarks/wasm-misc/AngryBots.wasm), its IR functions does not exceed 1414 ebbs.
A number 100 times greater seems (currently) enough to define our maximum threshold.static MAX_EBBS_IN_A_FUNCTION: u32 = 100000;
if ebb_num.as_u32() > MAX_EBBS_IN_A_FUNCTION {
return Err(self.error("too many ebbs"));
}
nalmt updated PR #1391 from pathological_case_951
to master
:
To fix this case that may take forever to compile (issue #951):
function %a() {
ebb477777777:
}We decide to define a maximum threshold for the number of ebbs in functions.
Based on a large WASM program (https://github.com/mozilla/perf-automation/blob/master/benchmarks/wasm-misc/AngryBots.wasm), its IR functions does not exceed 1414 ebbs.
A number 100 times greater seems (currently) enough to define our maximum threshold.static MAX_EBBS_IN_A_FUNCTION: u32 = 100000;
if ebb_num.as_u32() > MAX_EBBS_IN_A_FUNCTION {
return Err(self.error("too many ebbs"));
}
nalmt closed without merge PR #1391.
Last updated: Dec 23 2024 at 13:07 UTC