[PATCH] D143961: [llvm][SelectionDAGBuilder] use getRegistersForValue to generate legal copies

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 16:02:28 PST 2023


nickdesaulniers created this revision.
Herald added subscribers: steven.zhang, pengfei, hiraditya, nemanjai.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixes crashes observed when building the ARCH=i386 and ARCH=powerpc
Linux kernel.

Rewrite bits of SelectionDAGBuilder::visitCallBrLandingPad to re-use
machinery similar to SelectionDAGBuilder::visitInlineAsm. This is a bit
more robust for Flag Output Operands, outputs with a ConstraintVT that's
illegal for a given target, and outputs that require more than one
register.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143961

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/callbr-asm-outputs-indirect-isel.ll
  llvm/test/CodeGen/PowerPC/callbr-asm-outputs-indirect-isel.ll
  llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel-m32.ll
  llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143961.497140.patch
Type: text/x-patch
Size: 14871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230214/354f7c5a/attachment.bin>


More information about the llvm-commits mailing list