[all-commits] [llvm/llvm-project] 048fc2: [LiveIntervals] Ignore artificial regs when adding...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Wed Dec 4 12:25:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 048fc2bc102cff806613592829ff275c0f2b826f
      https://github.com/llvm/llvm-project/commit/048fc2bc102cff806613592829ff275c0f2b826f
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-12-04 (Wed, 04 Dec 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCRegisterInfo.h
    M llvm/lib/CodeGen/LiveIntervals.cpp
    M llvm/lib/MC/MCRegisterInfo.cpp
    M llvm/test/CodeGen/AArch64/arm64-addrmode.ll
    M llvm/test/CodeGen/AArch64/nested-iv-regalloc.mir
    M llvm/test/CodeGen/AArch64/preserve_nonecc_varargs_darwin.ll

  Log Message:
  -----------
  [LiveIntervals] Ignore artificial regs when adding kill flags (#116963)

If parts of a physical register for a given liverange, as assigned by
the register allocator, can be used to store other values not
represented by this liverange, then `LiveIntervals::addKillFlags`
normally avoids adding a kill flag on the use of this register
when the value's liverange ends.

However, if all the other regunits are artificial, then we can
still safely add the kill flag, since those parts of the register
can never be accessed independently.



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