Commit cf75329
committed
[FastISel] Support unreachable with NoTrapAfterNoReturn
Currently FastISel triggers a fallback if there is an unreachable
terminator and the TrapUnreachable option is enabled (the ISD::TRAP
selection does not actually work).
Add handling for NoTrapAfterNoReturn, in which case we don't
actually need to emit a trap. The test is just there to make sure
there is no FastISel fallback (which is why I'm not testing the
case without noreturn). We have other tests that check the actual
unreachable codegen variations.1 parent 7a7a426 commit cf75329
File tree
2 files changed
+25
-4
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+25
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | | - | |
1855 | | - | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1856 | 1863 | | |
1857 | | - | |
1858 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
1859 | 1867 | | |
1860 | 1868 | | |
1861 | 1869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments