[JS IR] Drop TemporaryAssignmentElimination optimization

Enable TemporaryAssignment tests
This commit is contained in:
Alexander Korepanov
2023-07-05 15:30:00 +02:00
committed by Space Team
parent a79282cec1
commit 25f7b81d51
10 changed files with 47 additions and 330 deletions
@@ -1,11 +1,12 @@
function test(n) {
var result;
var $tmp;
if (n >= 0) {
result = n;
}
else {
result = -n;
$tmp = n;
} else {
$tmp = -n;
}
result = $tmp;
return result;
}
@@ -17,4 +18,4 @@ function box() {
if (result != 20) return "fail2: " + result;
return "OK"
}
}