Unverified Commit 5b7a7ec5 authored by Christian Sigg's avatar Christian Sigg Committed by GitHub
Browse files

[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.
parent 18461dc4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment