aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorDmitry Vassiliev <dvassiliev@accesssoftek.com>2022-07-30 18:24:50 +0200
committerDmitry Vassiliev <dvassiliev@accesssoftek.com>2022-07-30 18:24:50 +0200
commitadc387460d85a371d111bcd3e08fdc8d4f26ddd5 (patch)
treea599831eff3ecb2341005c361cc65dec7c86e616 /llvm/lib/CodeGen/MachineScheduler.cpp
parent7073ec530e556afd2074018cca9e9c9ee484dbee (diff)
downloadllvm-adc387460d85a371d111bcd3e08fdc8d4f26ddd5.zip
llvm-adc387460d85a371d111bcd3e08fdc8d4f26ddd5.tar.gz
llvm-adc387460d85a371d111bcd3e08fdc8d4f26ddd5.tar.bz2
[CodeGen] Fixed undeclared MISchedCutoff in case of NDEBUG and LLVM_ENABLE_ABI_BREAKING_CHECKS
This patch fixes the error llvm/lib/CodeGen/MachineScheduler.cpp(755): error C2065: 'MISchedCutoff': undeclared identifier in case of NDEBUG and LLVM_ENABLE_ABI_BREAKING_CHECKS. Note MISchedCutoff is declared under #ifndef NDEBUG. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D130425
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 96131dc..e5cd462 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -750,7 +750,7 @@ void ScheduleDAGMI::moveInstruction(
}
bool ScheduleDAGMI::checkSchedLimit() {
-#if LLVM_ENABLE_ABI_BREAKING_CHECKS
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS && !defined(NDEBUG)
if (NumInstrsScheduled == MISchedCutoff && MISchedCutoff != ~0U) {
CurrentTop = CurrentBottom;
return false;