Sintendo
49a4e09719
DSPJit: Replace/optimize LEAs
...
- LEA is a bit silly when the source and the destination are the same. A
simple ADD or SHL will do in those cases.
66 8D 04 45 00 00 00 00 lea ax,[rax*2]
66 03 C0 add ax,ax
48 8D 04 00 lea rax,[rax+rax]
48 03 C0 add rax,rax
66 8D 14 D5 00 00 00 00 lea dx,[rdx*8]
66 C1 E2 03 shl dx,3
- When scaling by 2, consider summing the register with itself instead.
The former always needs a 32-bit displacement, so the sum is more
compact.
66 8D 14 45 00 00 00 00 lea dx,[rax*2]
66 8D 14 00 lea dx,[rax+rax]
2020-08-05 10:22:50 +02:00
..
2020-06-25 16:37:21 +02:00
2020-07-29 21:05:57 +02:00
2020-07-29 21:05:57 +02:00
2020-05-03 20:48:30 +04:00
2020-08-05 10:22:50 +02:00
2020-07-28 21:01:38 +02:00
2020-05-24 15:51:52 +01:00
2020-08-01 15:26:27 +01:00
2020-07-24 16:38:54 +01:00
2020-07-01 20:11:54 +01:00
2020-05-23 18:40:10 -05:00
2019-05-06 18:48:04 +00:00
2020-04-02 12:52:16 +10:00
2020-04-02 12:52:16 +10:00
2019-05-06 18:48:04 +00:00
2020-05-22 16:54:53 +02:00
2019-11-09 15:31:51 +01:00
2020-07-23 17:44:16 +02:00
2018-09-15 17:28:23 +02:00
2020-06-27 23:32:49 -04:00
2020-06-27 23:32:49 -04:00
2020-05-28 16:56:13 +10:00
2020-05-03 20:55:09 +04:00
2020-07-23 17:44:16 +02:00
2020-07-23 17:44:16 +02:00
2019-11-11 07:32:57 -05:00
2019-05-06 18:48:04 +00:00
2019-03-08 20:42:09 +01:00
2018-10-29 23:00:51 +01:00
2020-02-14 11:51:36 +01:00
2019-05-06 18:48:04 +00:00
2020-04-03 12:53:38 +02:00
2020-06-25 13:34:42 -05:00
2020-06-25 13:34:42 -05:00
2019-06-26 17:55:51 +02:00
2019-06-26 17:55:51 +02:00
2019-12-28 19:20:41 +10:00
2019-12-29 23:45:02 -05:00
2019-05-08 11:20:59 +01:00
2019-05-06 18:48:04 +00:00
2019-05-06 18:48:04 +00:00
2020-04-10 00:18:53 +02:00
2019-08-26 02:11:49 -04:00
2020-07-18 18:29:16 -05:00
2019-07-30 20:14:51 -07:00
2020-07-16 19:03:54 -04:00
2020-07-18 18:29:16 -05:00
2020-02-17 21:05:32 -05:00
2019-05-06 18:48:04 +00:00
2020-07-28 21:01:38 +02:00
2019-05-06 18:48:04 +00:00
2020-01-23 22:58:23 -06:00
2020-01-23 22:58:23 -06:00
2019-11-11 07:32:57 -05:00
2019-02-25 19:55:46 +01:00
2020-05-09 16:47:45 +02:00
2020-03-16 21:04:19 +01:00
2020-06-25 16:37:21 +02:00
2019-07-18 22:29:04 +02:00