[all-commits] [llvm/llvm-project] 08cb7d: [DomTree] Store immediate dominator as DFS number....

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Aug 9 10:59:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08cb7d93f7e88de47c50f41ae08514f17c624f7a
      https://github.com/llvm/llvm-project/commit/08cb7d93f7e88de47c50f41ae08514f17c624f7a
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-08-09 (Sun, 09 Aug 2026)

  Changed paths:
    M llvm/include/llvm/Support/GenericDomTreeConstruction.h

  Log Message:
  -----------
  [DomTree] Store immediate dominator as DFS number. NFC (#215059)

Replace the local variable `IDoms` and the pointer `InfoRec::IDom` with
a DFS number member.

Since `attachNewSubtree` and `reattachExistingSubtree` walk NumToNode in
DFS order, they can index IDom directly. Replace an always-false `if
(DT.getNode(W))` condition with an assert.



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