[PATCH] D117727: GlobalISel: Avoid crash on asm with lying result types

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 19 15:01:31 PST 2022


arsenm created this revision.
arsenm added reviewers: aemerson, paquette, kschwarz, Petar.Avramovic.
Herald added subscribers: kerbowa, hiraditya, rovka, nhaehnle, jvesely.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

The physical register in the asm has the wrong type for the declared
IR. It seems to work in the DAG by extracting the 4 elements that are
defined in the IR from the register, but that isn't handled here. This
doesn't seem to be a well tested path since other mismatched cases are
crashing the DAG asm handling.


https://reviews.llvm.org/D117727

Files:
  llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/inline-asm-mismatched-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117727.401416.patch
Type: text/x-patch
Size: 11875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220119/f4a1b708/attachment.bin>


More information about the llvm-commits mailing list