David Sherwood
2a48b6993a
[IR] In ConstantFoldShuffleVectorInstruction use zeroinitializer for splats of 0
...
When creating a splat of 0 for scalable vectors we tend to create them
with using a combination of shufflevector and insertelement, i.e.
shufflevector (<vscale x 4 x i32> insertelement (<vscale x 4 x i32> poison, i32 0, i32 0),
<vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer)
However, for the case of a zero splat we can actually just replace the
above with zeroinitializer instead. This makes the IR a lot simpler and
easier to read. I have changed ConstantFoldShuffleVectorInstruction to
use zeroinitializer when creating a splat of integer 0 or FP +0.0 values.
Differential Revision: https://reviews.llvm.org/D113394
2021-11-10 09:42:58 +00:00
..
2021-10-06 13:29:23 -07:00
2021-05-25 16:30:34 -07:00
2021-05-25 16:30:34 -07:00
2021-10-11 20:57:31 -07:00
2021-10-11 20:57:31 -07:00
2021-10-11 20:57:31 -07:00
2021-10-11 20:57:31 -07:00
2021-10-11 20:57:31 -07:00
2021-10-21 08:42:58 -07:00
2021-11-05 11:25:17 -07:00
2021-05-24 09:15:27 -07:00
2021-05-24 09:15:27 -07:00
2021-10-09 10:03:50 +08:00
2021-09-11 18:51:35 +08:00
2021-07-02 12:17:55 +01:00
2021-07-20 12:47:10 -07:00
2021-07-20 12:47:10 -07:00
2021-07-20 12:47:10 -07:00
2021-10-31 20:00:57 -07:00
2021-10-31 20:00:57 -07:00
2021-10-31 20:00:57 -07:00
2021-10-31 20:00:57 -07:00
2021-10-31 20:00:57 -07:00
2020-11-20 17:58:26 -05:00
2021-09-16 10:41:55 +05:30
2021-09-16 10:41:55 +05:30
2021-09-16 10:41:55 +05:30
2021-05-24 19:43:40 +02:00
2020-12-18 13:10:57 -05:00
2018-01-24 09:56:07 +00:00
2021-05-24 19:43:40 +02:00
2021-10-31 20:00:57 -07:00
2021-10-31 20:00:57 -07:00
2020-11-20 17:58:26 -05:00
2021-03-29 08:55:30 -04:00
2021-10-06 13:29:23 -07:00
2021-03-19 14:34:25 +01:00
2021-06-22 14:52:16 +01:00
2021-06-22 14:52:16 +01:00
2021-05-21 13:41:17 -07:00
2015-09-11 03:22:04 +00:00
2021-03-04 11:22:30 -08:00
2021-01-27 10:43:51 -08:00
2021-02-12 22:58:26 -08:00
2021-01-27 10:43:51 -08:00
2021-01-27 10:43:51 -08:00
2021-09-27 12:28:07 -07:00
2021-02-12 22:58:26 -08:00
2021-01-27 10:43:51 -08:00
2021-09-27 12:28:07 -07:00
2021-07-17 11:09:18 +02:00
2021-07-17 11:09:18 +02:00
2021-05-20 09:54:38 -07:00
2021-05-20 09:54:38 -07:00
2021-05-05 15:51:46 -05:00
2019-08-13 01:23:06 +00:00
2018-04-17 04:02:24 +00:00
2021-06-17 09:38:28 +02:00
2021-06-17 09:38:28 +02:00
2021-02-22 15:42:16 -08:00
2021-02-22 15:42:16 -08:00
2021-05-24 19:43:40 +02:00
2021-02-22 15:42:16 -08:00
2021-02-22 15:42:16 -08:00
2021-05-11 08:23:55 -07:00
2021-05-11 08:23:55 -07:00
2021-06-28 23:15:32 +02:00
2021-11-10 09:42:58 +00:00
2020-12-14 16:34:37 -05:00