Simon Atanasyan
5f7d6ac7bf
[mips] Reduce number of instructions used for loading a global symbol's value
...
Now `lw/sw $reg, sym+offset` pseudo instructions for global symbol `sym`
are lowering into the following three instructions.
```
lw $reg, %got(symbol)($gp)
addiu $reg, $reg, offset
lw/sw $reg, 0($reg)
```
It's possible to reduce the number of instructions by taking the offset
in account in the final `lw/sw` command. This patch implements that
optimization.
```
lw $reg, %got(symbol)($gp)
lw/sw $reg, offset($reg)
```
Differential Revision: https://reviews.llvm.org/D66553
llvm-svn: 369756
2019-08-23 13:36:24 +00:00
..
2019-08-23 13:36:24 +00:00
2019-06-11 03:21:13 +00:00
2019-08-23 01:00:55 +00:00
2019-06-11 03:21:13 +00:00
2019-05-11 01:38:56 +00:00
2019-05-11 01:38:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-12 04:58:45 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-18 17:00:08 +00:00
2019-06-18 17:00:08 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-02-01 02:28:03 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-01 23:27:28 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 10:33:09 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-06-12 17:14:03 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-19 22:08:06 +00:00
2019-07-17 08:11:40 +00:00
2019-06-19 22:08:06 +00:00
2019-01-19 08:50:56 +00:00
2019-01-28 14:59:30 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-04-10 16:38:43 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-09 08:26:38 +00:00
2019-08-09 08:26:38 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-27 13:41:30 +00:00
2019-06-21 05:40:31 +00:00
2019-05-15 21:26:25 +00:00
2019-01-19 08:50:56 +00:00
2019-07-01 13:21:05 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-18 16:59:47 +00:00
2019-06-12 17:52:05 +00:00
2019-02-08 20:48:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-15 21:46:38 +00:00
2019-08-15 19:22:08 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-07-17 08:11:15 +00:00
2019-08-21 09:43:20 +00:00
2019-07-19 00:24:45 +00:00
2019-06-24 16:16:12 +00:00
2019-06-24 16:16:12 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-07-13 00:08:38 +00:00
2019-01-19 08:50:56 +00:00
2019-07-01 13:21:05 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-24 22:17:31 +00:00
2019-08-08 10:21:12 +00:00
2019-07-11 09:28:34 +00:00
2019-03-25 11:30:46 +00:00
2019-06-24 15:50:29 +00:00
2019-06-24 15:50:29 +00:00
2019-06-01 13:55:18 +00:00
2019-01-19 08:50:56 +00:00
2019-07-12 04:58:45 +00:00
2019-07-02 10:22:14 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-07-17 08:11:15 +00:00
2019-05-31 08:15:28 +00:00
2019-08-15 19:22:08 +00:00
2019-06-12 17:14:03 +00:00
2019-08-15 19:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-08-13 06:26:59 +00:00
2019-08-13 06:26:59 +00:00
2019-08-15 15:54:37 +00:00
2019-04-24 06:48:31 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-07 12:21:41 +00:00