[PATCH] D106299: [Local] Flag to decide if a trap should be placed before unreachable

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 12:12:28 PDT 2021


lebedev.ri added a comment.

I think `TrapBeforeUnreachableChoice` should be a TTI hook, overrided by GPU targets.
I think `shouldUseTrapBeforeUnreachable()` should be sunk into `changeToUnreachable()`, and `UseLLVMTrap` renamed into `PreferToUseLLVMTrap`, with an appropriate documentation opdate.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106299



More information about the llvm-commits mailing list