[llvm] [LV] Fix emission of debug message in legality check (PR #101924)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 12:16:06 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");
----------------
fhahn wrote:
Ok, generally it's preferable to keep things separate if possible. Fine to keep it here in the PR for now though
https://github.com/llvm/llvm-project/pull/101924
More information about the llvm-commits
mailing list