Descriptiondart2js: eliminate useless conditionals
1. Simplify HPhi nodes that merge refinements of the same value.
2. Replace the condition of HIf with a constant when the HIf does nothing (no controlled statements or phis).
Together with existing optimizations, this can optimize `s?.toString()` to `s` when `s` is known to be a nullable String.
BUG=
R=efortuna@google.com
Committed: https://github.com/dart-lang/sdk/commit/b0599b264736a3dff5b9ea26de47deac427b5447
Patch Set 1 #
Messages
Total messages: 13 (10 generated)
|