[all-commits] [llvm/llvm-project] 77a360: [CodeGen] Fix incorrect index in rematerialization...

Lucas Ramirez via All-commits all-commits at lists.llvm.org
Mon Apr 27 08:13:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77a360663d640d1426e6181c17f127d8877b014a
      https://github.com/llvm/llvm-project/commit/77a360663d640d1426e6181c17f127d8877b014a
  Author: Lucas Ramirez <11032120+lucas-rami at users.noreply.github.com>
  Date:   2026-04-27 (Mon, 27 Apr 2026)

  Changed paths:
    M llvm/lib/CodeGen/Rematerializer.cpp

  Log Message:
  -----------
  [CodeGen] Fix incorrect index in rematerialization tracking (#194387)

When deleting the last rematerialization of a register, we should delete
the rematerializer's remat tracking map's entry that corresponds to the
index of the *original* register, not the rematerialized register.

The existing typo has no impact on correctness at the moment because
entries with rematerialized register indices are never created (so there
is nothing to erase), and having an empty set in a value does not break
any code invariant; it just wastes memory.

Assisted-by: Claude Code



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