f2304f9ec0
When building SSA form for callee graph during inlining, numbering of SSA values starts with the number of SSA values in the caller graph. However, parameter stubs may contain constants which are already added to the callee graph and occupy certain range of SSA numbers. If that number is larger than number of SSA values in the caller graph, then numbers, already assigned to constants, can be incorrectly reused during SSA construction. The fix is to adjust number of SSA values in the callee graph before parameter stubs are created, and then use current number of SSA values as a starting point when building SSA. TEST=runtime/tests/vm/dart/regress_flutter119220_test.dart Fixes https://github.com/flutter/flutter/issues/119220 Change-Id: I7efd52e626b63bf64fb47861ec210b291911ef28 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280041 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>