Skip to content

Commit 4323b2b

Browse files
committed
[AMDGPU] Add assert for Hazard for bottom up.
1 parent 84e6845 commit 4323b2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ void GCNHazardRecognizer::processBundle() {
285285
}
286286

287287
void GCNHazardRecognizer::processBundleBottomUp() {
288+
// Walk through the instructions in this bundle in bottom-up order.
289+
// We only use this during post-RA scheduling, so hazard recognizer mode
290+
// should never be active here (it always runs top-down).
291+
assert(!IsHazardRecognizerMode &&
292+
"Bottom-up scheduling shouldn't run in hazard recognizer mode");
293+
288294
// Step through each instruction in the bundle in bottom-up order.
289295
MachineBasicBlock::instr_iterator MI =
290296
std::next(CurrCycleInstr->getIterator());

0 commit comments

Comments
 (0)