[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:09:26 PDT 2024


================
@@ -1451,10 +1451,12 @@ bool LoopVectorizationLegality::canVectorize(bool UseVPlanNativePath) {
   // Check whether the loop-related control flow in the loop nest is expected by
   // vectorizer.
   if (!canVectorizeLoopNestCFG(TheLoop, UseVPlanNativePath)) {
-    if (DoExtraAnalysis)
+    if (DoExtraAnalysis) {
+      LLVM_DEBUG(dbgs() << "LV: legality check failed: loop nest");
----------------
madhur13490 wrote:

Sure, thanks!

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


More information about the llvm-commits mailing list