[llvm] [AMDGPU] Refine GCNHazardRecognizer hasHazard() (PR #138841)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 06:08:19 PDT 2025
================
@@ -441,42 +441,106 @@ using IsExpiredFn = function_ref<bool(const MachineInstr &, int WaitStates)>;
using GetNumWaitStatesFn = function_ref<unsigned int(const MachineInstr &)>;
// Search for a hazard in a block and its predecessors.
-template <typename StateT>
+template <typename StateT, typename StateTraitsT>
----------------
jayfoad wrote:
In this implementation I don't see the need for a separate traits class. getHashValue and isEqual can just be static methods in the state class.
https://github.com/llvm/llvm-project/pull/138841
More information about the llvm-commits
mailing list