llvm/llvm-project

AMDGPU GlobalISel fails on select of G_UBSANTRAP

Open

#131,740 建立於 2025年3月18日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)C++ (10,782 fork)batch import
backend:AMDGPUgood first issuellvm:globalisel

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

https://godbolt.org/z/6PzeExK4f

; RUN: llc -mtriple=amdgcn-amd-amdhsa -global-isel < %s
; LLVM ERROR: cannot select: G_UBSANTRAP 0 (in function: ubsan_trap)

define void @ubsan_trap() {
  call void @llvm.ubsantrap(i8 0)
  ret void
}

We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow

貢獻者指南