[all-commits] [llvm/llvm-project] dcf50f: [SystemZ] Don't fold memops after SSA if tied regs...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Wed May 27 07:42:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcf50fe35fd0760325c24ac78e43a90e61a95337
      https://github.com/llvm/llvm-project/commit/dcf50fe35fd0760325c24ac78e43a90e61a95337
  Author: Jonas Paulsson <paulson1 at linux.ibm.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
    A llvm/test/CodeGen/SystemZ/foldmem-regalloc.mir
    M llvm/test/CodeGen/SystemZ/foldmemop-global.mir

  Log Message:
  -----------
  [SystemZ] Don't fold memops after SSA if tied regs don't match. (#197475)

When foldMemoryOperandImpl() is called during register allocation,
folding into a reg/mem opcode mustn't be done if the tied def and use
operands do not end up referencing the same register.

Fixes #197414



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