[llvm] 292019e - MachineScheduler.cpp: Fixup D141707, suppress `MISchedDumpReservedCycles` conditionally.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 17:05:01 PST 2023


Author: NAKAMURA Takumi
Date: 2023-01-14T10:04:23+09:00
New Revision: 292019e931a0f1b863a6f1efbeb4d08233f81328

URL: https://github.com/llvm/llvm-project/commit/292019e931a0f1b863a6f1efbeb4d08233f81328
DIFF: https://github.com/llvm/llvm-project/commit/292019e931a0f1b863a6f1efbeb4d08233f81328.diff

LOG: MachineScheduler.cpp: Fixup D141707, suppress `MISchedDumpReservedCycles` conditionally.

It is used in `LLVM_ENABLE_DUMP` regardless of `NDEBUG`.

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineScheduler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index b7893fa80c652..5ab5a40e75742 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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


        


More information about the llvm-commits mailing list