Optimize out no-op `yield from` statements If the array is empty, then I'd expect that the generator is never left, and that can be converted to a no-op and the return value would always
Optimize out no-op `yield from` statements If the array is empty, then I'd expect that the generator is never left, and that can be converted to a no-op and the return value would always be `null`. Make `yield from [];` as efficient as `if (false) { yield null; }` when opcache's sccp pass is enabled. Closes GH-5679
show more ...
|