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

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jul 26 17:11:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c901b739b67476b00209b7ee706de94c0595d763
      https://github.com/llvm/llvm-project/commit/c901b739b67476b00209b7ee706de94c0595d763
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-07-26 (Fri, 26 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.



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