[PATCH] D129037: [globalisel] Select register bank for DBG_VALUE

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 2 02:51:02 PDT 2022


LuoYuanke created this revision.
Herald added subscribers: jsji, pengfei, hiraditya, kristof.beyls, rovka.
Herald added a project: All.
LuoYuanke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The register operand of DBG_VALUE is not selected to a proper register
bank in both AArch64 and X86. This would cause getRegClass crash after
global ISel. After discussion, we think the MIR should assume all
vritual register should be set proper register class after global ISel,
so this patch is to fix the gap of DBG_VALUE for AArch64 and X86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129037

Files:
  llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/lib/Target/X86/X86InstructionSelector.cpp
  llvm/lib/Target/X86/X86RegisterBankInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-hint.mir
  llvm/test/DebugInfo/AArch64/debug-reg-bank.ll
  llvm/test/DebugInfo/X86/debug-reg-bank.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129037.441876.patch
Type: text/x-patch
Size: 13773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220702/adaa958b/attachment.bin>


More information about the llvm-commits mailing list