Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OptimizeInstructions: Add missing invalidation check in consecutive e…
…quality test (#6596) This existed before #6495 but became noticeable there. We only looked at the fallthrough values in the later part of areConsecutiveInputsEqual, but there can be invalidation due to the non-fallthrough part: (i32.add (local.get $x) (block (local.set $x ..) (local.get $x) ) ) The set can cause the local.get to differ the second time. To fix this, check if the non-fallthrough part invalidates the fallthrough (but only on the right hand side). Fixes #6593
- Loading branch information