[llvm-branch-commits] [llvm] [AMDGPU] Add structural stall heuristic to scheduling strategies (PR #169617)
Jay Foad via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 9 06:34:45 PDT 2026
================
@@ -334,6 +334,10 @@ unsigned GCNHazardRecognizer::PreEmitNoops(MachineInstr *MI) {
return std::max(W, NopPadding.getValue());
}
+unsigned GCNHazardRecognizer::getHazardWaitStates(MachineInstr *MI) const {
+ return const_cast<GCNHazardRecognizer *>(this)->PreEmitNoopsCommon(MI);
----------------
jayfoad wrote:
You shouldn't really need a const cast. #185416 makes PreEmitNoopsCommon itself const, then you can just rename it if you want.
https://github.com/llvm/llvm-project/pull/169617
More information about the llvm-branch-commits
mailing list