[llvm] 2982d00 - Fix a buildbot warning [nfc]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 14:40:37 PDT 2022


Author: Philip Reames
Date: 2022-05-03T14:40:27-07:00
New Revision: 2982d0032b332b060b95f9e25fb1558f41d9a128

URL: https://github.com/llvm/llvm-project/commit/2982d0032b332b060b95f9e25fb1558f41d9a128
DIFF: https://github.com/llvm/llvm-project/commit/2982d0032b332b060b95f9e25fb1558f41d9a128.diff

LOG: Fix a buildbot warning [nfc]

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index 4b18220d4812c..fa43dae022e89 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -393,7 +393,6 @@ class VSETVLIInfo {
     print(dbgs());
     dbgs() << "\n";
   }
-#endif
 
   /// Implement operator<<.
   /// @{
@@ -417,13 +416,15 @@ class VSETVLIInfo {
        << "ScalarMovOp=" << (bool)ScalarMovOp << ", "
        << "SEWLMULRatioOnly=" << (bool)SEWLMULRatioOnly << "}";
   }
+#endif
 };
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 inline raw_ostream &operator<<(raw_ostream &OS, const VSETVLIInfo &V) {
   V.print(OS);
   return OS;
 }
-
+#endif
 
 struct BlockData {
   // The VSETVLIInfo that represents the net changes to the VL/VTYPE registers


        


More information about the llvm-commits mailing list