summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-27 02:36:59 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-27 02:36:59 +0000
commit20e4c0d24e2dded15f99d7d658d679fd5b55cdc3 (patch)
tree3be54263285498785b078e362c90aa3534b75129 /lib/Target
parent556a7c0f08015b4d3864853de7a660fb349da7af (diff)
downloadllvm-20e4c0d24e2dded15f99d7d658d679fd5b55cdc3.tar.gz
llvm-20e4c0d24e2dded15f99d7d658d679fd5b55cdc3.tar.bz2
llvm-20e4c0d24e2dded15f99d7d658d679fd5b55cdc3.tar.xz
Fix missing newline and simplify debug printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/R600/AMDGPUPromoteAlloca.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/R600/AMDGPUPromoteAlloca.cpp b/lib/Target/R600/AMDGPUPromoteAlloca.cpp
index 2d3a7fdd4f..053ea8a90b 100644
--- a/lib/Target/R600/AMDGPUPromoteAlloca.cpp
+++ b/lib/Target/R600/AMDGPUPromoteAlloca.cpp
@@ -158,7 +158,7 @@ static bool tryPromoteAllocaToVector(AllocaInst *Alloca) {
// 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(AllocaInst *Alloca) {
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(AllocaInst *Alloca) {
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(AllocaInst &I) {
// 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;