MachineScheduler.cpp: Fixup D141707, suppress `MISchedDumpReservedCycles` conditionally.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 14 Jan 2023 00:58:16 +0000 (09:58 +0900)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 14 Jan 2023 01:04:23 +0000 (10:04 +0900)
It is used in `LLVM_ENABLE_DUMP` regardless of `NDEBUG`.

llvm/lib/CodeGen/MachineScheduler.cpp

index b7893fa..5ab5a40 100644 (file)
@@ -101,7 +101,9 @@ cl::opt<bool> MISchedDumpReservedCycles(
 #else
 const bool ViewMISchedDAGs = false;
 const bool PrintDAGs = false;
+#ifdef LLVM_ENABLE_DUMP
 const bool MISchedDumpReservedCycles = false;
+#endif // LLVM_ENABLE_DUMP
 #endif // NDEBUG
 
 } // end namespace llvm