1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 19:14:16 +02:00
Files
archived-php-src/ext/opcache/tests
Tyson Andre 543684e796 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
2020-06-08 09:17:13 -04:00
..
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2019-07-22 11:39:52 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-05-21 11:17:51 +02:00
2020-02-03 22:52:20 +01:00
2016-02-28 11:53:21 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2017-12-16 21:24:26 +01:00
2020-02-03 22:52:20 +01:00
2017-12-16 22:04:18 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2019-01-10 10:25:55 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-10-02 10:34:08 +02:00
2019-06-13 12:35:29 +02:00
2019-06-13 12:35:29 +02:00
2019-06-13 12:35:29 +02:00
2020-05-20 09:50:12 +02:00
2019-07-03 10:20:07 +02:00
2019-07-29 13:02:01 +02:00
2020-03-13 11:42:07 +03:00
2020-03-13 11:42:07 +03:00
2020-02-03 22:52:20 +01:00
2020-01-30 14:55:58 +01:00
2020-05-04 14:51:18 +02:00
2020-02-03 22:52:20 +01:00
2020-03-23 17:13:57 +01:00
2019-12-10 09:00:09 +01:00
2019-02-20 11:22:31 +01:00
2019-03-15 23:36:47 +01:00
2019-02-20 11:22:31 +01:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-01-06 22:42:31 +01:00
2020-01-06 22:42:31 +01:00
2020-01-06 22:42:31 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-05 11:00:27 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-07-05 12:20:12 +03:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00
2020-02-03 22:52:20 +01:00
2019-07-01 17:21:16 +02:00
2019-07-01 17:21:16 +02:00