diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2022-07-20 12:28:48 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2022-08-09 22:19:46 -0700 |
| commit | 5089b6acc7b57605823704d28c82e286f49661e6 (patch) | |
| tree | 104920296e88e68093bce28f2b22f3d68b0452e3 /include/ruby/internal/encoding/sprintf.h | |
| parent | d9167491db220756df159048348f006619df28c1 (diff) | |
Add peephole optimizer for newarray(X)/expandarray(X, 0) -> opt_reverse(X)
This renames the reverse instruction to opt_reverse, since now it
is only added by the optimizer. Then it uses as a more general
form of swap. This optimizes multiple assignment in the popped
case with more than two elements.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6158
Diffstat (limited to 'include/ruby/internal/encoding/sprintf.h')
0 files changed, 0 insertions, 0 deletions
