[PATCH] D92554: [SVE] Fix crashes with inline assembly
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 01:27:27 PST 2020
david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin.
Herald added subscribers: llvm-commits, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
david-arm requested review of this revision.
All the crashes found compiling inline assembly are fixed in this
patch by changing AArch64TargetLowering::getRegForInlineAsmConstraint
to be more resilient to mismatched value and register types. For
example, it makes no sense to request a predicate register for
a nxv2i64 type and so on.
Tests have been added here:
test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92554
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92554.309182.patch
Type: text/x-patch
Size: 4132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/2ffe36e4/attachment.bin>
More information about the llvm-commits
mailing list