[llvm] [Scheduler][NFC] Don't use set to track visited nodes (PR #190480)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 09:31:01 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;
----------------
mshockwave wrote:
second the union approach. Could we also create another helper function with name like `setNodeVisited` so that it's a bit more readable than piggy-back on `setCombinerWorklistIndex`
https://github.com/llvm/llvm-project/pull/190480
More information about the llvm-commits
mailing list