mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
651350bc3b
Don't emit dead code branches that are guarded by boolean literals. Add a single level of simplification for !true -> false, and !false -> true. While this might not be very common in code, it does allow for a useful pattern in the runtime libraries. Branches can be included into the compiled code or not based on a compile time flag. Change-Id: Ib90e1e951cea3ef8c75b944635776b292759594a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243363 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Anna Gringauze <annagrin@google.com> |
||
---|---|---|
.. | ||
cast_error | ||
debugger | ||
assertion_failure_message_test.dart | ||
basic_assignment_test.dart | ||
const_test.dart | ||
developer_events_test.dart | ||
hot_restart_expando_test.dart | ||
hot_restart_js_interop_test.dart | ||
hot_restart_late_test.dart | ||
hot_restart_static_test.dart | ||
hot_restart_test.dart | ||
hot_restart_timer_test.dart | ||
if_else_literal_compilation_test.dart | ||
js_interop_test.dart | ||
libraries_part.dart | ||
libraries_test.dart | ||
no_such_method_errors_test.dart | ||
runtime_utils.dart | ||
runtime_utils_nnbd.dart | ||
subtype_test.dart | ||
subtype_weak_test.dart | ||
type_normalization_test.dart | ||
utils.dart | ||
variance_subtype_test.dart | ||
variance_test.dart | ||
weak_null_safety_errors_test.dart |