// If we can't compute a vector index from this GEP, then we can't
// promote this alloca to vector.
if (!Index) {
- DEBUG(dbgs() << " Cannot compute vector index for GEP " << *GEP << "\n");
+ DEBUG(dbgs() << " Cannot compute vector index for GEP " << *GEP << '\n');
return false;
}
VectorType *VectorTy = arrayTypeToVecType(AllocaTy);
- DEBUG(dbgs() << " Converting alloca to vector "; AllocaTy->dump();
- dbgs() << " -> "; VectorTy->dump(); dbgs() << "\n");
+ DEBUG(dbgs() << " Converting alloca to vector "
+ << *AllocaTy << " -> " << *VectorTy << '\n');
for (std::vector<Value*>::iterator I = WorkList.begin(),
E = WorkList.end(); I != E; ++I) {
default:
Inst->dump();
llvm_unreachable("Do not know how to replace this instruction "
- "with vector op");
+ "with vector op");
}
}
return true;
// First try to replace the alloca with a vector
Type *AllocaTy = I.getAllocatedType();
- DEBUG(dbgs() << "Trying to promote " << I);
+ DEBUG(dbgs() << "Trying to promote " << I << '\n');
if (tryPromoteAllocaToVector(&I))
return;