Commit e9c1274
authored
[LTT] mark the CFI jumptable naked on Windows (#170371)
We were not marking the `.cfi.jumptable` functions as `naked` on windows. The referenced bug (https://llvm.org/bugs/show_bug.cgi?id=28641#c3) appears to be fixed:
```bash
build/bin/opt -S -passes=lowertypetests -mtriple=i686-pc-win32 llvm/test/Transforms/LowerTypeTests/function.ll | build/bin/llc -O0
```
```
L_.cfi.jumptable: # @.cfi.jumptable
# %bb.0: # %entry
#APP
jmp _f.cfi@PLT
int3
int3
int3
#NO_APP
#APP
jmp _g.cfi@PLT
int3
int3
int3
#NO_APP
# -- End function
.section .rdata,"dr"
.p2align 4, 0x0 # @0
```
Not seeing the spilled registers described in the bug anymore.1 parent 6bdb838 commit e9c1274
File tree
2 files changed
+6
-12
lines changed- llvm
- lib/Transforms/IPO
- test/Transforms/LowerTypeTests
2 files changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1554 | 1554 | | |
1555 | 1555 | | |
1556 | 1556 | | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
| 1557 | + | |
1563 | 1558 | | |
1564 | 1559 | | |
1565 | 1560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
0 commit comments