If a value is already the last element of the worklist, then I think that we don't have to add it again, it is not needed to process it repeatedly.
For some long Triton-generated LLVM IR, this can cause a ~100x speedup.
Differential D153561
[SCCPSolver] Speed up SCCPSolver by avoiding repeated work list elements tdanyluk on Jun 22 2023, 8:28 AM. Authored by
Details If a value is already the last element of the worklist, then I think that we don't have to add it again, it is not needed to process it repeatedly. For some long Triton-generated LLVM IR, this can cause a ~100x speedup.
Diff Detail
|
Redundant braces here and above.