llvm/llvm-project

AMDGPU GlobalISel fails on select of G_UBSANTRAP

Open

#131,740 opened on 2025年3月18日

GitHub で見る
 (5 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
backend:AMDGPUgood first issuellvm:globalisel

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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

コントリビューターガイド