Simon Atanasyan
f46ba4f077
[mips] Use less registers to load address of TargetExternalSymbol
...
There is no pattern matched `add hi, (MipsLo texternalsym)`. As a result,
loading an address of 32-bit symbol requires two registers and one more
additional instruction:
```
addiu $1, $zero, %lo(foo)
lui $2, %hi(foo)
addu $25, $2, $1
```
This patch adds the missed pattern and enables generation more effective
set of instructions:
```
lui $1, %hi(foo)
addiu $25, $1, %lo(foo)
```
Differential Revision: https://reviews.llvm.org/D66771
llvm-svn: 370196
2019-08-28 12:35:53 +00:00
..
2019-07-09 15:48:05 +00:00
2018-06-20 22:40:12 +00:00
2019-03-19 19:01:34 +00:00
2019-08-27 14:41:44 +00:00
2019-08-28 12:35:53 +00:00
2019-06-19 00:25:39 +00:00
2019-07-17 08:11:40 +00:00
2018-11-05 14:37:41 +00:00
2019-06-17 09:13:29 +00:00
2019-06-19 00:25:39 +00:00
2019-07-09 15:48:05 +00:00
2019-07-12 04:58:45 +00:00
2018-10-27 15:00:38 +00:00
2019-03-30 20:16:16 +00:00
2019-07-09 15:48:05 +00:00
2018-06-20 22:40:12 +00:00
2018-07-04 19:26:31 +00:00
2019-06-10 16:53:37 +00:00
2019-06-10 16:53:37 +00:00
2019-06-10 16:53:37 +00:00
2018-07-13 15:03:24 +00:00
2019-08-14 16:27:07 +00:00
2018-05-22 13:24:38 +00:00
2018-06-29 16:37:16 +00:00
2018-10-03 22:02:23 +00:00
2019-06-19 00:25:39 +00:00
2019-07-09 15:48:05 +00:00
2019-06-04 11:06:21 +00:00
2019-08-09 12:02:32 +00:00
2018-07-26 10:59:35 +00:00
2018-07-23 23:19:53 +00:00
2018-07-18 14:11:22 +00:00
2019-06-10 16:53:37 +00:00
2019-03-19 17:01:24 +00:00
2018-09-11 15:32:47 +00:00
2019-01-28 14:59:30 +00:00
2018-11-08 19:14:20 +00:00
2019-07-09 15:48:16 +00:00
2019-07-09 15:48:05 +00:00
2019-03-06 22:40:28 +00:00
2018-06-01 10:07:10 +00:00
2019-08-14 16:27:00 +00:00
2019-01-17 21:50:37 +00:00
2019-05-15 02:35:32 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-07-17 08:11:57 +00:00
2019-04-26 18:45:04 +00:00
2019-05-27 06:00:00 +00:00
2019-06-17 09:51:07 +00:00
2019-05-28 20:47:44 +00:00
2019-05-16 13:15:27 +00:00
2019-01-17 21:50:37 +00:00
2019-01-17 21:50:37 +00:00
2019-08-28 12:35:53 +00:00
2018-08-29 14:53:55 +00:00
2019-05-28 20:47:44 +00:00
2019-05-16 13:15:27 +00:00
2019-06-04 11:06:21 +00:00
2018-06-19 16:05:44 +00:00
2019-05-01 05:27:20 +00:00
2018-07-05 09:27:05 +00:00
2019-02-07 22:57:33 +00:00
2019-07-12 04:58:45 +00:00
2019-06-19 00:25:39 +00:00
2018-10-16 08:27:28 +00:00
2019-03-13 14:23:12 +00:00
2019-05-29 14:59:07 +00:00
2019-06-17 09:13:29 +00:00
2019-03-13 13:09:30 +00:00
2019-07-12 04:58:45 +00:00
2018-06-11 16:50:28 +00:00
2019-05-01 05:27:20 +00:00
2019-04-02 13:57:32 +00:00
2018-10-03 22:02:23 +00:00
2019-01-17 21:50:37 +00:00
2018-10-10 14:15:52 +00:00
2019-02-22 14:53:58 +00:00
2019-01-17 21:50:37 +00:00
2019-03-06 22:40:28 +00:00
2018-08-29 14:07:14 +00:00
2019-01-17 21:50:37 +00:00
2019-02-23 15:56:32 +00:00
2019-07-09 15:48:05 +00:00
2018-07-21 16:16:03 +00:00
2018-09-11 09:57:25 +00:00
2019-06-19 00:25:39 +00:00
2019-06-19 00:25:39 +00:00
2019-03-13 17:07:09 +00:00
2019-05-01 05:27:20 +00:00