Skip to content

Commit 9ccd0a8

Browse files
committed
Revert "Fix #273"
This reverts commit c16be25.
1 parent 4b613d3 commit 9ccd0a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/iroptimizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ class IROptimizer {
659659

660660
const newState = state.clone();
661661
modified = this.analyzeStack(stack, newState) || modified;
662-
modified = this.analyzeInputs(block.inputs, newState) || modified;
663662
modified = (keepLooping = state.or(newState)) || modified;
663+
modified = this.analyzeInputs(block.inputs, state) || modified;
664664
} while (keepLooping);
665665
block.entryState = state.clone();
666666
return modified;

test/snapshot/__snapshots__/tw-gh-249-quicksort.sb3.tw-snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ b0.value = (b1.value[(((((+p1 || 0) + (+p0 || 0)) || 0) / 2) | 0) - 1] ?? "");
6767
b2.value = p0;
6868
b3.value = p1;
6969
while (true) {
70-
while (compareLessThan((b1.value[(b2.value | 0) - 1] ?? ""), b0.value)) {
70+
while (compareLessThan(listGet(b1.value, b2.value), b0.value)) {
7171
b2.value = ((+b2.value || 0) + 1);
7272
}
73-
while (compareGreaterThan((b1.value[(b3.value | 0) - 1] ?? ""), b0.value)) {
73+
while (compareGreaterThan(listGet(b1.value, b3.value), b0.value)) {
7474
b3.value = ((+b3.value || 0) + -1);
7575
}
7676
if (compareGreaterThan(b2.value, b3.value)) {

0 commit comments

Comments
 (0)