[llvm] cc1fd00 - [NFC] Fix dbgs() statement in ControlHeightReduction

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 15:02:55 PST 2022


Author: Mircea Trofin
Date: 2022-12-01T15:02:24-08:00
New Revision: cc1fd002bfbec8ab963f6333d187fe66ff6b1430

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

LOG: [NFC] Fix dbgs() statement in ControlHeightReduction

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
index aee9718ff0c78..4d4674b859fef 100644
--- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -1686,7 +1686,8 @@ void CHR::transformScopes(CHRScope *Scope, DenseSet<PHINode *> &TrivialPHIs) {
   for (RegInfo &RI : Scope->RegInfos) {
     const Region *R = RI.R;
     unsigned Duplication = getRegionDuplicationCount(R);
-    dbgs() << "Dup count for R=" << R << "  is " << Duplication << "\n";
+    CHR_DEBUG(dbgs() << "Dup count for R=" << R << "  is " << Duplication
+                     << "\n");
     if (Duplication >= CHRDupThreshsold) {
       CHR_DEBUG(dbgs() << "Reached the dup threshold of " << Duplication
                        << " for this region");


        


More information about the llvm-commits mailing list