llvm/llvm-project

AMDGPU GlobalISel fails on select of G_UBSANTRAP

Open

#131.740 aperta il 18 mar 2025

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)C++ (10.782 fork)batch import
backend:AMDGPUgood first issuellvm:globalisel

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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

Guida contributor