| commit | fba48fcf443bb90ccd53a9624a034166453ab3d8 | [log] [tgz] |
|---|---|---|
| author | Simon Atanasyan <simon@atanasyan.com> | Thu Sep 26 09:13:20 2019 +0000 |
| committer | Simon Atanasyan <simon@atanasyan.com> | Thu Sep 26 09:13:20 2019 +0000 |
| tree | 78309fb93b3c195bf94ce060667573372f19d18b | |
| parent | 6e504d770653e0ab392bf264b76efba461b8aebd [diff] |
[mips] Relax jalr/jr instructions using R_MIPS_JALR relocation The R_MIPS_JALR relocation denotes jalr/jr instructions in position independent code. Both these instructions take a target's address from the $25 register. If offset to the target symbol fits into the 18-bits, it's more efficient to replace jalr/jr by bal/b instructions. Differential Revision: https://reviews.llvm.org/D68057 llvm-svn: 372951