commit | 1029f74c60b4d76b95d710427cb2694a9333942e | [log] [tgz] |
---|---|---|
author | Christian Sigg <chsigg@users.noreply.github.com> | Sun Oct 01 07:59:24 2023 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Sep 30 23:02:23 2023 -0700 |
tree | ba9ae31fb6ff9555e7de9ea8c1022142e08bcfe3 | |
parent | 46c71dd58c541103637be266d8651c90a3b94763 [diff] |
[NVPTX] Fix code generation for `trap-unreachable`. (#67478) https://reviews.llvm.org/D152789 added an `exit` op before each `unreachable`. This means we never get to the `trap` instruction. This change limits the insertion of `exit` instructions to the cases where `unreachable` is not lowered to `trap`. Trap itself is changed to be emitted as `trap; exit;` to convey to `ptxas` that it exits the CFG. GitOrigin-RevId: 5b7a7ec5a2106772de90a59c52e9fac7481f7e8a