[llvm] [LV] Fix emission of debug message in legality check (PR #101924)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 23:08:13 PDT 2024


================
@@ -1519,17 +1521,21 @@ bool LoopVectorizationLegality::canVectorize(bool UseVPlanNativePath) {
       return false;
   }
 
-  LLVM_DEBUG(dbgs() << "LV: We can vectorize this loop"
-                    << (LAI->getRuntimePointerChecking()->Need
-                            ? " (with a runtime bound check)"
-                            : "")
-                    << "!\n");
-
   unsigned SCEVThreshold = VectorizeSCEVCheckThreshold;
   if (Hints->getForce() == LoopVectorizeHints::FK_Enabled)
     SCEVThreshold = PragmaVectorizeSCEVCheckThreshold;
 
+  if (Result) {
----------------
madhur13490 wrote:

Oh yes, there is no reason to change. Thanks! Hopefully, looks good now :) 

https://github.com/llvm/llvm-project/pull/101924


More information about the llvm-commits mailing list