9b017a1ced
Rationale: A basic peephole optimizer with window size one that avoids redundant push-pop sequences already results is substantial savings in code size and runtime, without any noticeable impact on compile time (the peephole is very, very fast). Performance: Golem unoptimized code (which typically runs -90% compared to optimized code, sees 5-60% improvements https://github.com/dart-lang/sdk/issues/36409 Change-Id: I08db4b3dbc92377d89340a4969db6e664e54bceb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102980 Commit-Queue: Aart Bik <ajcbik@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>