[JS IR] Implement MoveTemporaryVariableDeclarationToAssignment optimization

This commit is contained in:
Alexander Korepanov
2023-07-06 17:24:28 +02:00
committed by Space Team
parent 25f7b81d51
commit 524c475834
23 changed files with 929 additions and 25 deletions
@@ -1,9 +1,8 @@
var result = "";
function box() {
var $tmp;
$tmp = result;
var $tmp = result;
result += "fail";
result = $tmp + "OK";
return result;
}
}