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

Ikhlas Ajbar via All-commits all-commits at lists.llvm.org
Fri Jul 17 10:33:47 PDT 2026


  Branch: refs/heads/release/23.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 033aa122e399ba23d216fa3e469ee62721b1b8e7
      https://github.com/llvm/llvm-project/commit/033aa122e399ba23d216fa3e469ee62721b1b8e7
  Author: Ikhlas Ajbar <iajbar at quicinc.com>
  Date:   2026-07-17 (Fri, 17 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.

(cherry picked from commit da6f3e6cc2565e4c6cf720931845c8eee132ce86)



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