[PATCH] D130425: [CodeGen] Fixed undeclared MISchedCutoff
Dmitry Vassiliev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 23 08:58:03 PDT 2022
slydiman created this revision.
slydiman added reviewers: kazu, kovdan01, atrick.
slydiman added a project: LLVM.
Herald added subscribers: ecnelises, javed.absar, hiraditya, MatzeB.
Herald added a project: All.
slydiman requested review of this revision.
Herald added a subscriber: llvm-commits.
This patch fixes the error llvm/lib/CodeGen/MachineScheduler.cpp(755): error C2065: 'MISchedCutoff': undeclared identifier in case of NDEBUG.
Note MISchedCutoff is declared under #ifndef NDEBUG.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130425
Files:
llvm/lib/CodeGen/MachineScheduler.cpp
Index: llvm/lib/CodeGen/MachineScheduler.cpp
===================================================================
--- llvm/lib/CodeGen/MachineScheduler.cpp
+++ llvm/lib/CodeGen/MachineScheduler.cpp
@@ -750,7 +750,7 @@
}
bool ScheduleDAGMI::checkSchedLimit() {
-#if LLVM_ENABLE_ABI_BREAKING_CHECKS
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS && !NDEBUG
if (NumInstrsScheduled == MISchedCutoff && MISchedCutoff != ~0U) {
CurrentTop = CurrentBottom;
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130425.447074.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220723/cd13e780/attachment.bin>
More information about the llvm-commits
mailing list