[llvm] [AMDGPU] Support bottom-up postRA scheduing. (PR #135295)
Harrison Hao via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 02:49:38 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:
Now I tested many cases, I never encountered error or assert, so I think it is still work correctly
https://github.com/llvm/llvm-project/pull/135295
More information about the llvm-commits
mailing list