[all-commits] [llvm/llvm-project] 59f17b: [SVE] Fix crashes with inline assembly

david-arm via All-commits all-commits at lists.llvm.org
Tue Dec 8 05:53:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 59f17b57d9c9abf86d8dcc05c49d3bbd807e29c7
      https://github.com/llvm/llvm-project/commit/59f17b57d9c9abf86d8dcc05c49d3bbd807e29c7
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/inline-asm-constraints-bad-sve.ll

  Log Message:
  -----------
  [SVE] Fix crashes with inline assembly

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

Differential Revision: https://reviews.llvm.org/D92554




More information about the All-commits mailing list