Skip to content

Commit 4650a9f

Browse files
committed
[AMDGPU] Add a assert.
1 parent 9471187 commit 4650a9f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,11 @@ void GCNHazardRecognizer::AdvanceCycle() {
417417
}
418418

419419
void GCNHazardRecognizer::RecedeCycle() {
420-
if (IsHazardRecognizerMode || ST.getGeneration() < AMDGPUSubtarget::GFX11)
421-
report_fatal_error(
422-
"hazard recognizer does not support bottom-up scheduling.");
420+
assert(!IsHazardRecognizerMode &&
421+
"Bottom-up scheduling shouldn't run in hazard recognizer mode");
422+
if (ST.getGeneration() < AMDGPUSubtarget::GFX11)
423+
report_fatal_error("Hazard recognizer does not support bottom-up "
424+
"scheduling on pre‑GFX11.");
423425
}
424426

425427
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)