[llvm] r211850 - Fix missing newline and simplify debug printing.
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Jun 26 19:36:59 PDT 2014
Author: arsenm
Date: Thu Jun 26 21:36:59 2014
New Revision: 211850
URL: http://llvm.org/viewvc/llvm-project?rev=211850&view=rev
Log:
Fix missing newline and simplify debug printing.
Modified:
llvm/trunk/lib/Target/R600/AMDGPUPromoteAlloca.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUPromoteAlloca.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUPromoteAlloca.cpp?rev=211850&r1=211849&r2=211850&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUPromoteAlloca.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUPromoteAlloca.cpp Thu Jun 26 21:36:59 2014
@@ -158,7 +158,7 @@ static bool tryPromoteAllocaToVector(All
// 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;
}
@@ -170,8 +170,8 @@ static bool tryPromoteAllocaToVector(All
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) {
@@ -206,7 +206,7 @@ static bool tryPromoteAllocaToVector(All
default:
Inst->dump();
llvm_unreachable("Do not know how to replace this instruction "
- "with vector op");
+ "with vector op");
}
}
return true;
@@ -233,7 +233,7 @@ void AMDGPUPromoteAlloca::visitAlloca(Al
// 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;
More information about the llvm-commits
mailing list