[llvm] [AMDGPU] Handled G_UBSANTRAP GlobalIsel (PR #134492)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 19:48:03 PDT 2025
================
@@ -2103,7 +2103,7 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
getActionDefinitionsBuilder({G_MEMCPY, G_MEMCPY_INLINE, G_MEMMOVE, G_MEMSET})
.lower();
- getActionDefinitionsBuilder({G_TRAP, G_DEBUGTRAP}).custom();
+ getActionDefinitionsBuilder({G_TRAP, G_DEBUGTRAP, G_UBSANTRAP}).custom();
----------------
arsenm wrote:
Not exactly. G_TRAP would still be custom, G_DEBUGTRAP and G_UBSANTRAP would lower. The default lowering would just replace those with regular G_TRAP
https://github.com/llvm/llvm-project/pull/134492
More information about the llvm-commits
mailing list