Commit 9b6b2a0
authored
[X86] Use RIP-relative for non-globals in medium code model in classifyLocalReference() (#67070)
We only want to treat globals as potentially far away, not other things
like constants in the constant pool.
This matches the object file emission that only puts the large section
flag on globals.
Remove FIXME since the remaining differences are accesses to 0 sized
globals which are intentional.1 parent d12c892 commit 9b6b2a0
File tree
2 files changed
+5
-11
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
577 | 575 | | |
578 | 576 | | |
579 | 577 | | |
580 | | - | |
581 | | - | |
582 | | - | |
| 578 | + | |
583 | 579 | | |
584 | 580 | | |
585 | 581 | | |
586 | 582 | | |
587 | | - | |
588 | | - | |
589 | | - | |
| 583 | + | |
590 | 584 | | |
591 | 585 | | |
592 | 586 | | |
| |||
0 commit comments