Nikita Popov
3c9f3f76f1
[ConstantFold] Fold zero-index GEPs with opaque pointers
...
With opaque pointers, we can eliminate zero-index GEPs even if
they have multiple indices, as this no longer impacts the result
type of the GEP.
This optimization is already done for instructions in InstSimplify,
but we were missing the corresponding constant expression handling.
The constexpr transform is a bit more powerful, because it can
produce a vector splat constant and also handles undef values --
it is an extension of an existing single-index transform.
2022-04-04 13:04:27 +02:00
..
2022-03-17 13:49:07 -07:00
2021-03-06 21:52:46 +03:00
2022-03-07 09:46:20 +01:00
2021-03-19 11:29:48 +07:00
2021-06-21 16:24:16 -07:00
2020-08-06 10:56:00 -07:00
2020-12-15 14:50:32 +07:00
2020-10-08 11:15:35 +07:00
2021-11-29 15:23:34 -08:00
2021-11-30 18:21:14 +01:00
2020-09-08 11:15:40 +07:00
2021-03-19 12:28:22 +07:00
2021-08-30 12:06:58 +03:00
2021-11-16 12:41:04 +00:00
2020-04-03 20:15:04 +03:00
2021-10-20 20:48:33 +01:00
2021-09-20 12:01:12 +07:00
2021-03-22 11:55:57 +07:00
2021-10-01 16:30:44 -07:00
2021-05-07 19:52:29 +01:00
2020-09-29 13:20:59 +02:00
2021-08-27 10:27:16 -07:00
2020-12-17 01:03:49 +03:00
2022-01-11 16:03:35 +03:00
2021-11-05 15:36:47 -07:00
2021-09-20 12:01:10 +07:00
2021-03-06 21:52:46 +03:00
2020-10-14 17:03:33 +07:00
2020-11-20 20:08:43 -05:00
2021-10-20 20:48:33 +01:00
2020-03-05 16:27:59 -05:00
2021-03-06 21:52:46 +03:00
2021-11-29 15:23:34 -08:00
2020-10-14 17:03:33 +07:00
2021-03-06 21:52:46 +03:00
2022-04-04 13:04:27 +02:00
2019-11-06 15:41:57 -08:00
2020-10-14 17:03:33 +07:00
2021-11-29 15:23:34 -08:00
2021-11-23 09:58:46 -08:00
2020-11-20 14:00:46 -05:00
2020-12-20 00:18:33 +03:00
2021-09-04 16:45:51 -07:00
2021-11-25 07:21:42 -05:00
2020-04-03 20:15:04 +03:00
2020-10-28 18:51:40 +07:00
2021-09-21 11:17:56 +07:00
2021-03-06 21:52:46 +03:00
2022-02-17 08:48:11 -08:00
2021-10-15 11:49:18 +07:00
2020-09-08 11:15:40 +07:00
2021-11-29 15:23:34 -08:00
2020-04-03 20:15:04 +03:00
2019-11-06 15:41:57 -08:00
2020-07-28 09:09:13 -07:00
2020-04-03 20:15:04 +03:00
2021-06-17 14:05:12 -07:00
2022-03-18 12:04:35 +01:00
2020-11-26 12:37:21 +07:00
2020-01-23 11:06:16 -08:00
2021-11-29 15:23:34 -08:00
2021-03-06 21:52:46 +03:00
2020-11-26 14:28:21 +01:00
2019-08-23 04:03:23 +00:00
2020-12-10 09:46:08 -08:00
2021-03-06 21:52:46 +03:00
2020-11-19 15:37:54 +08:00
2022-01-25 13:25:19 +07:00
2021-09-04 16:45:51 -07:00
2021-07-11 17:04:50 -07:00
2021-02-25 15:54:18 +00:00
2019-11-06 15:41:57 -08:00
2021-10-14 13:04:22 -07:00
2020-12-17 01:03:49 +03:00
2020-09-17 22:37:43 +07:00
2021-03-19 11:29:48 +07:00
2021-03-13 16:05:34 +03:00
2020-11-02 22:31:11 +01:00