[all-commits] [llvm/llvm-project] 26e41a: [RISCV] Handle "o" inline asm memory constraint

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Jun 6 02:51:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26e41a80d07c475fec75e7d58b6408b92161b93a
      https://github.com/llvm/llvm-project/commit/26e41a80d07c475fec75e7d58b6408b92161b93a
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2023-06-06 (Tue, 06 Jun 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/inline-asm.ll

  Log Message:
  -----------
  [RISCV] Handle "o" inline asm memory constraint

This is the same as D100412.

We just found the same crash when we tried to compile some packages
like mariadb, php, etc.

For constraint "o", it means "A memory operand is allowed, but
only if the address is offsettable". So I think it can be handled
just like constraint "m" for RISCV target.

And we print verbose information when unsupported constraints occur.

Reviewed By: asb

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




More information about the All-commits mailing list