[all-commits] [llvm/llvm-project] da6f3e: [Hexagon] Fix HexagonRDFOpt hang during live-in re...

Ikhlas Ajbar via All-commits all-commits at lists.llvm.org
Thu Jul 16 12:18:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da6f3e6cc2565e4c6cf720931845c8eee132ce86
      https://github.com/llvm/llvm-project/commit/da6f3e6cc2565e4c6cf720931845c8eee132ce86
  Author: Ikhlas Ajbar <iajbar at quicinc.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
    A llvm/test/CodeGen/Hexagon/rdfopt-liveins-hang.mir

  Log Message:
  -----------
  [Hexagon] Fix HexagonRDFOpt hang during live-in recomputation (#209986)

After HexagonRDFOpt, the compiler recomputed live-in registers for every
block in one batch. On large inputs (e.g. kernel builds) this was slow,
and on some functions each pass changed the live-in values of other
blocks, triggering more passes until the compiler hung (PR #207422).

Fix: process blocks one at a time in post-order (successors before
predecessors) and stop as soon as nothing changes. Add a pass limit as a
safety net to keep compile time bounded in all cases.



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