Skip to content

Commit 6be7756

Browse files
author
eopXD
committed
[SLP][NFC] Add debug logs for entry.
Tell the users they are specifying something without vector register. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D117980
1 parent a2afc82 commit 6be7756

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8079,8 +8079,11 @@ bool SLPVectorizerPass::runImpl(Function &F, ScalarEvolution *SE_,
80798079

80808080
// If the target claims to have no vector registers don't attempt
80818081
// vectorization.
8082-
if (!TTI->getNumberOfRegisters(TTI->getRegisterClassForType(true)))
8082+
if (!TTI->getNumberOfRegisters(TTI->getRegisterClassForType(true))) {
8083+
LLVM_DEBUG(
8084+
dbgs() << "SLP: Didn't find any vector registers for target, abort.\n");
80838085
return false;
8086+
}
80848087

80858088
// Don't vectorize when the attribute NoImplicitFloat is used.
80868089
if (F.hasFnAttribute(Attribute::NoImplicitFloat))

0 commit comments

Comments
 (0)