[llvm] [X86][GlobalISel] Ignore non-vregs in regbank mapping (PR #182880)
Evgenii Kudriashov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 09:50:12 PST 2026
================
@@ -0,0 +1,28 @@
+; RUN: llc -mtriple=x86_64-linux-gnu -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck %s
+
+declare void @llvm.dbg.value(metadata, metadata, metadata)
+
+; CHECK-LABEL: foo:
+; CHECK: #DEBUG_VALUE: foo:p <- $rdi
+; CHECK: retq
+define void @foo(ptr %p) !dbg !0 {
+entry:
+ call void @llvm.dbg.value(metadata ptr %p, metadata !4, metadata !DIExpression()), !dbg !5
+ ret void, !dbg !5
+}
----------------
e-kud wrote:
Since we try to fix a bug in RegisterBankInfo, can we additionally add a test in GMIR to show what is the problematic GMIR?
https://github.com/llvm/llvm-project/pull/182880
More information about the llvm-commits
mailing list