[all-commits] [llvm/llvm-project] 003416: [RISCV] Don't crash in RISCVMergeBaseOffset if INL...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jul 27 07:04:02 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 00341691ac31795b2d6fd5849efc586dd57dd40e
      https://github.com/llvm/llvm-project/commit/00341691ac31795b2d6fd5849efc586dd57dd40e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-07-27 (Sat, 27 Jul 2024)

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

  Log Message:
  -----------
  [RISCV] Don't crash in RISCVMergeBaseOffset if INLINE_ASM uses address register in a non-memory constraint. (#100790)

If the register is used by a non-memory constraint we should disable the
fold. Otherwise, we may leave CommonOffset unassigned.

Fixes #100779.

(cherry picked from commit c901b739b67476b00209b7ee706de94c0595d763)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list