[llvm] [AMDGPU] Support bottom-up postRA scheduing. (PR #135295)
Harrison Hao via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 04:32:11 PDT 2025
================
@@ -417,7 +417,11 @@ void GCNHazardRecognizer::AdvanceCycle() {
}
void GCNHazardRecognizer::RecedeCycle() {
- llvm_unreachable("hazard recognizer does not support bottom-up scheduling.");
+ assert(!IsHazardRecognizerMode &&
+ "Bottom-up scheduling shouldn't run in hazard recognizer mode");
+ if (ST.getGeneration() < AMDGPUSubtarget::GFX11)
+ report_fatal_error("Hazard recognizer does not support bottom-up "
+ "scheduling on pre‑GFX11.");
----------------
harrisonGPU wrote:
Hi, Jay, I understand your mind, I think only add a assert is enough to support this feature, and I have updated it.
https://github.com/llvm/llvm-project/pull/135295
More information about the llvm-commits
mailing list