[all-commits] [llvm/llvm-project] 285a3c: [CycleInfo] Store entries in the block layout. NFC...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 21 01:23:13 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 285a3cb74ef4cdc080cb264d44d1e3c9aa3a33be
      https://github.com/llvm/llvm-project/commit/285a3cb74ef4cdc080cb264d44d1e3c9aa3a33be
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M llvm/include/llvm/ADT/GenericCycleImpl.h
    M llvm/include/llvm/ADT/GenericCycleInfo.h

  Log Message:
  -----------
  [CycleInfo] Store entries in the block layout. NFC (#210866)

A reducible loop has a single entry (header), which flatten() places at
BlockLayout[IdxBegin], as its minimum-preorder block. A reducible loop
then needs no storage at all.

For the uncommon irreducible loop case, we append its full entry list
(header first) after the Euler tour, referenced by [EntryBegin,
EntryBegin+EntrySize), making `GenericCycleInfo::Cycle` (named only
because "loop" is occupied by LoopInfo) trivially destructible.



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