da1f06f239
If catch block is included into the loop, we should also include the whole try body as there are implicit control flow edges between each block in a try body and corresponding catch block. If try body is not included, analysis of loop invariant loads could miss conflicting stores and may conclude that certain loads are loop invariant although they are not. TEST=runtime/tests/vm/dart/regress_63336_test.dart Fixes https://github.com/dart-lang/sdk/issues/63336 Change-Id: I9d6b73e24554ee3bfbcc722fa59634ea90b00abb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/501560 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
This package defines control flow graph (CFG) intermediate representation of Dart programs and optimization passes performed on CFG.
This package is intended to be used only by Dart compiler(s) in the Dart SDK.
Structure of the package:
front_end/ # Translation from kernel AST to CFG.
ir/ # CFG/SSA IR and computation of its properties.
passes/ # Optimization passes.
utils/ # General-purpose utilities.
Status: experimental
NOTE: This package is currently experimental and not published or included in the SDK.
Do not take dependency on this package unless you are prepared for breaking changes and possibly removal of this code at any point in time.