[all-commits] [llvm/llvm-project] fd64bd: [Inline Spiller] Extend the snippet by statepoint ...

serguei-katkov via All-commits all-commits at lists.llvm.org
Sun Jan 8 22:46:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd64bd94eda0b93c2fb95e048e7919832f72a1cd
      https://github.com/llvm/llvm-project/commit/fd64bd94eda0b93c2fb95e048e7919832f72a1cd
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/StackMaps.h
    M llvm/lib/CodeGen/InlineSpiller.cpp
    M llvm/lib/CodeGen/StackMaps.cpp
    M llvm/test/CodeGen/AArch64/regalloc-last-chance-recolor-with-split.mir
    M llvm/test/CodeGen/X86/statepoint-ra.ll
    M llvm/test/CodeGen/X86/statepoint-split-single-block.ll

  Log Message:
  -----------
  [Inline Spiller] Extend the snippet by statepoint uses

Snippet is a tiny live interval which has copy or fill like def
and copy or spill like use at the end (any of them might abcent).

Snippet has only one use/def inside interval and interval is located
in one basic block.

When inline spiller spills some reg around uses it also forces the
spilling of connected snippets those which got by splitting the
same original reg and its def is a full copy of our reg or its
last use is a full copy to our reg.

The definition of snippet is extended to allow not only one use/def
but more. However all other uses are statepoint instructions which will
fold fill into its operand. That way we do not introduce new fills/spills.

Reviewed By: qcolombet, dantrushin
Differential Revision: https://reviews.llvm.org/D138093




More information about the All-commits mailing list