JS/Inlining: fix bug in temporary assignment elimination which causes excess removal of assignment statement. When there is a set of temporary variables that receive same value in different execution branches, remove them carefully so that at least one (and, preferably, at most) remains in each branch.
This commit is contained in:
+2
@@ -26,4 +26,6 @@ class TemporaryAssignmentEliminationTest : BasicOptimizerTest("temporary-assignm
|
||||
@Test fun declaration() = box()
|
||||
|
||||
@Test fun skipsGlobalDeclarations() = box()
|
||||
|
||||
@Test fun transitiveAssignment() = box()
|
||||
}
|
||||
Reference in New Issue
Block a user