Skip to content

Commit 1da72c7

Browse files
committed
[AMDGPU] Add assert for Hazard for bottom up.
1 parent 188e02f commit 1da72c7

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
@@ -281,6 +281,12 @@ void GCNHazardRecognizer::processBundle() {
281281
}
282282

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

0 commit comments

Comments
 (0)