1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

LoopVectorizer: change debug prints: Print the module identifier when deciding to vectorize. When deciding not to vectorize do not print the called function name because it can be null.

llvm-svn: 166989
This commit is contained in:
Nadav Rotem 2012-10-30 00:40:39 +00:00
parent f1cddf738b
commit 2ada2db2a2

View File

@ -408,7 +408,9 @@ struct LoopVectorize : public LoopPass {
VF = VectorizationFactor; VF = VectorizationFactor;
} }
DEBUG(dbgs() << "LV: Found a vectorizable loop ("<< VF << ").\n"); DEBUG(dbgs() << "LV: Found a vectorizable loop ("<< VF << ") in "<<
L->getHeader()->getParent()->getParent()->getModuleIdentifier()<<
"\n");
// If we decided that it is *legal* to vectorizer the loop then do it. // If we decided that it is *legal* to vectorizer the loop then do it.
SingleBlockLoopVectorizer LB(L, SE, LI, DT, &LPM, VF); SingleBlockLoopVectorizer LB(L, SE, LI, DT, &LPM, VF);
@ -597,7 +599,8 @@ void SingleBlockLoopVectorizer::scalarizeInstruction(Instruction *Instr) {
WidenMap[Instr] = VecResults; WidenMap[Instr] = VecResults;
} }
void SingleBlockLoopVectorizer::createEmptyLoop(LoopVectorizationLegality *Legal) { void
SingleBlockLoopVectorizer::createEmptyLoop(LoopVectorizationLegality *Legal) {
/* /*
In this function we generate a new loop. The new loop will contain In this function we generate a new loop. The new loop will contain
the vectorized instructions while the old loop will continue to run the the vectorized instructions while the old loop will continue to run the
@ -1178,8 +1181,7 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) {
// We still don't handle functions. // We still don't handle functions.
CallInst *CI = dyn_cast<CallInst>(I); CallInst *CI = dyn_cast<CallInst>(I);
if (CI) { if (CI) {
DEBUG(dbgs() << "LV: Found a call site:"<< DEBUG(dbgs() << "LV: Found a call site.\n");
CI->getCalledFunction()->getName() << "\n");
return false; return false;
} }