Skip to content

Commit bb16efe

Browse files
committed
[AMDGPU] Move RPT::getLiveRegs() check under EXPENSIVE_CHECKS
This is too expensive even for debug builds. It doubles scheduling time if enabled. Differential Revision: https://reviews.llvm.org/D97232
1 parent e765324 commit bb16efe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,9 @@ void GCNScheduleDAGMILive::computeBlockPressure(const MachineBasicBlock *MBB) {
461461
I = Rgn.first;
462462
auto *NonDbgMI = &*skipDebugInstructionsForward(Rgn.first, Rgn.second);
463463
auto LRS = BBLiveInMap.lookup(NonDbgMI);
464+
#ifdef EXPENSIVE_CHECKS
464465
assert(isEqual(getLiveRegsBefore(*NonDbgMI, *LIS), LRS));
466+
#endif
465467
RPTracker.reset(*I, &LRS);
466468
}
467469

0 commit comments

Comments
 (0)