Sam Elliott
fe4245a4c1
[RISCV] Implement convertSelectOfConstantsToMath
...
Summary:
The current lowering of `select` on RISC-V uses a branch instruction to load a
register with one or other value. This is inefficient, especially in the case of
small constants that can be computed easily.
By implementing the TargetLowering::convertSelectOfConstantsToMath hook, some of
the simpler cases are covered that let us avoid introducing a branch in these
cases.
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D79260
2020-05-02 15:05:57 +01:00
..
2019-08-20 22:53:24 +00:00
2019-10-28 09:54:33 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-08-06 00:24:00 +00:00
2019-12-05 14:32:11 +08:00
2019-09-30 07:58:50 +00:00
2019-09-17 11:15:35 +00:00
2020-04-01 15:51:26 +01:00
2019-12-06 09:53:53 -08:00
2020-03-31 16:16:19 +08:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-10-29 11:32:16 +08:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2019-11-26 15:22:55 +00:00
2019-11-05 09:39:06 +00:00
2019-09-17 11:15:35 +00:00
2020-03-20 09:42:24 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2020-05-02 15:01:04 +01:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-11-14 18:29:50 +00:00
2019-10-15 02:04:29 +00:00
2019-10-15 02:04:29 +00:00
2020-03-20 09:42:24 +00:00
2020-03-20 09:42:24 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2020-05-02 15:01:04 +01:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-10-25 14:02:02 +01:00
2019-09-17 11:15:35 +00:00
2020-03-20 09:42:24 +00:00
2019-12-23 15:39:04 +00:00
2019-12-23 15:39:04 +00:00
2020-02-13 10:16:06 -08:00
2019-11-04 11:23:54 +00:00
2020-02-13 10:16:06 -08:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2020-02-11 22:45:15 +08:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-08-08 14:59:16 +00:00
2019-08-08 14:59:16 +00:00
2019-09-17 11:15:35 +00:00
2019-08-08 14:59:16 +00:00
2019-09-17 11:15:35 +00:00
2020-01-15 13:50:50 +00:00
2020-02-13 10:16:06 -08:00
2020-02-15 09:14:04 +08:00
2020-02-13 10:16:06 -08:00
2019-12-24 15:57:33 -08:00
2020-02-13 10:16:06 -08:00
2019-12-24 15:57:33 -08:00
2019-11-14 18:29:50 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-12-19 16:41:53 +00:00
2020-02-13 10:16:06 -08:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-12-09 13:51:08 +00:00
2020-02-13 10:16:06 -08:00
2020-02-13 10:16:06 -08:00
2019-09-17 11:15:35 +00:00
2020-02-13 10:16:06 -08:00
2020-04-17 12:08:30 +00:00
2020-03-05 18:05:28 -08:00
2020-03-15 17:46:23 -07:00
2020-04-17 12:08:30 +00:00
2020-03-05 18:05:28 -08:00
2020-03-15 17:46:23 -07:00
2019-12-23 15:39:04 +00:00
2019-10-22 21:25:01 +01:00
2019-10-22 21:25:01 +01:00
2020-02-13 10:16:06 -08:00
2019-08-28 23:40:37 +00:00
2019-10-04 02:00:57 +00:00
2019-09-17 11:15:35 +00:00
2019-09-17 11:15:35 +00:00
2019-08-06 00:24:00 +00:00
2019-08-28 23:40:37 +00:00
2019-09-17 11:15:35 +00:00
2019-08-06 00:24:00 +00:00
2019-08-06 00:24:00 +00:00
2020-02-11 21:23:03 +00:00
2020-05-02 15:05:57 +01:00
2019-09-17 11:15:35 +00:00
2019-09-11 11:16:48 +00:00
2020-02-11 22:45:15 +08:00
2019-12-05 14:32:11 +08:00
2020-02-11 21:23:03 +00:00
2019-11-14 18:29:50 +00:00
2019-10-04 02:00:57 +00:00
2019-11-11 09:51:37 +00:00
2020-01-25 17:36:46 +00:00
2019-11-16 12:39:53 +08:00
2019-10-04 02:00:57 +00:00
2020-01-22 08:12:28 -08:00
2020-02-18 23:56:42 +08:00
2020-02-13 10:16:06 -08:00
2020-03-27 17:30:12 -07:00
2019-12-03 22:04:54 +00:00
2019-09-17 11:15:35 +00:00
2019-11-11 09:51:37 +00:00
2019-11-11 09:51:37 +00:00
2020-04-15 13:01:41 -07:00
2020-02-13 10:16:06 -08:00
2019-09-17 11:15:35 +00:00