[all-commits] [llvm/llvm-project] 3da5e8: [NVPTX] Fix NVPTXLowerUnreachable::isLoweredToTrap...

duk via All-commits all-commits at lists.llvm.org
Tue Sep 24 18:45:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3da5e82e31712792411945b655929a1680fb476c
      https://github.com/llvm/llvm-project/commit/3da5e82e31712792411945b655929a1680fb476c
  Author: duk <74797529+duk-37 at users.noreply.github.com>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXLowerUnreachable.cpp
    M llvm/test/CodeGen/NVPTX/unreachable.ll

  Log Message:
  -----------
  [NVPTX] Fix NVPTXLowerUnreachable::isLoweredToTrap logic (#109730)

Previously, this pass would not generate traps if `NoTrapAfterNoreturn`
was set and would generate traps even if the instruction directly before
the `UnreachableInst` was `llvm.trap()`.

Fix both of these problems and add some tests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list