[llvm] [Scheduler][NFC] Don't use set to track visited nodes (PR #190480)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 20:17:24 PDT 2026


================
@@ -692,6 +692,9 @@ END_TWO_BYTE_PACK()
   /// Index in worklist of DAGCombiner, or negative if the node is not in the
   /// worklist. -1 = not in worklist; -2 = not in worklist, but has already been
   /// combined at least once.
+  ///
+  /// This field is also used to track the visited state in
+  /// ScheduleDAGSDNodes::BuildSchedUnits.
   int CombinerWorklistIndex = -1;
----------------
wangpc-pp wrote:

We may rename it since the SelectionDAG-based scheduler is not used widely and this field is unused.

https://github.com/llvm/llvm-project/pull/190480


More information about the llvm-commits mailing list