[PATCH] D106301: [OpenMP] Disable trap before unreachable for OpenMP device jobs

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 19 12:35:30 PDT 2021


jdoerfert added a comment.

In D106301#2888162 <https://reviews.llvm.org/D106301#2888162>, @JonChesterfield wrote:

> What's the problem with emitting llvm.trap in various unreachable places?

llvm.trap is preserved, thus branches to an llvm.trap are preserved.

> Wondering if it also affects translating assert to an llvm.trap

no.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106301/new/

https://reviews.llvm.org/D106301



More information about the cfe-commits mailing list