[llvm] [GlobalISel][AMDGPU] Emit proper diagnostic when inline asm register allocation fails (PR #201380)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 08:50:46 PDT 2026
================
@@ -347,9 +358,12 @@ bool InlineAsmLowering::lowerInlineAsm(
// Find a register that we can use.
if (OpInfo.Regs.empty()) {
- LLVM_DEBUG(dbgs()
- << "Couldn't allocate output register for constraint\n");
- return false;
+ emitInlineAsmError(MIRBuilder, Call,
----------------
aobolensk wrote:
If we return false then we will fall back to sdag that will also fail the same point: https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp#L10421-L10427
https://github.com/llvm/llvm-project/pull/201380
More information about the llvm-commits
mailing list