@@ -268,7 +268,7 @@ std::pair<MemoryLocationRange, bool> aggregate(
268268 // `Auxiliary Default` only.
269269 if ((Loc.Kind & ~LocKind::Auxiliary) != LocKind::Default)
270270 return std::make_pair (Loc, true );
271- // LLVM_DEBUG(dbgs() << "[AGGREGATE] Aggregate loc: "; printLocationSource(dbgs(), Loc); dbgs() << "\n");
271+ LLVM_DEBUG (dbgs () << " [AGGREGATE] Aggregate loc: " ; printLocationSource (dbgs (), Loc); dbgs () << " \n " );
272272 MemoryLocationRange ResLoc (Loc);
273273 auto *SE = Fwk->getScalarEvolution ();
274274 assert (SE && " ScalarEvolution must be specified!" );
@@ -426,9 +426,9 @@ std::pair<MemoryLocationRange, bool> aggregate(
426426 LLVM_DEBUG(dbgs() << "ElemSize:" << Fwk->getDataLayout().getTypeStoreSize(ElemType) << "\n");
427427 LLVM_DEBUG(dbgs() << "Subscripts size: " << LocInfo.second->Subscripts.size() << "\n");*/
428428 // if (LocInfo.second->Subscripts.size() == 1) {
429- for (auto *S : LocInfo.second ->Subscripts ) {
429+ /* for (auto *S : LocInfo.second->Subscripts) {
430430 S->dump();
431- }
431+ }*/
432432 // }
433433 /* LLVM_DEBUG(dbgs() << "BasePtr == GV: " << (BasePtr == GV) << "\n");
434434 LLVM_DEBUG(dbgs() << "Number of dims: " << ArrayPtr->getNumberOfDims() << "\n");
@@ -699,11 +699,11 @@ std::pair<MemoryLocationRange, bool> aggregate(
699699 ResLoc.Ptr = BasePtr;
700700 assert (ResLoc.Kind == LocKind::Collapsed &&
701701 " Array location must be of the `collapsed` kind!" );
702- /* LLVM_DEBUG(
702+ LLVM_DEBUG (
703703 dbgs () << " [AGGREGATE] Aggregated location: " ;
704704 printLocationSource (dbgs (), ResLoc, &Fwk->getDomTree (), true );
705705 dbgs () << " \n " ;
706- );*/
706+ );
707707 ResLoc.Kind |= Loc.Kind & LocKind::Auxiliary;
708708 return std::make_pair (ResLoc, IsOwn);
709709}
@@ -1359,19 +1359,19 @@ void ReachDFFwk::collapse(DFRegion *R) {
13591359 if (pointsToLocalMemory (*EM->front (), *DFL->getLoop ()))
13601360 continue ;
13611361 }
1362- // LLVM_DEBUG(printLocInfo("[COLLAPSE] Collapse Use location: ", Loc));
1362+ LLVM_DEBUG (printLocInfo (" [COLLAPSE] Collapse Use location: " , Loc));
13631363 distribute (aggregate (R, N, Loc, this ), Loc, OwnUses, OtherUses);
13641364 }
13651365 LocationSet NewUses;
13661366 for (auto &Loc : OwnUses) {
13671367 SmallVector<MemoryLocationRange, 4 > UseDiff;
13681368 if (MustReachIn.subtractFrom (Loc, UseDiff)) {
13691369 for (auto &L : UseDiff) {
1370- // LLVM_DEBUG(printLocInfo("[COLLAPSE] Add Use location: ", L));
1370+ LLVM_DEBUG (printLocInfo (" [COLLAPSE] Add Use location: " , L));
13711371 NewUses.insert (L);
13721372 }
13731373 } else {
1374- // LLVM_DEBUG(printLocInfo("[COLLAPSE] Add entire Use location: ", Loc));
1374+ LLVM_DEBUG (printLocInfo (" [COLLAPSE] Add entire Use location: " , Loc));
13751375 NewUses.insert (Loc);
13761376 }
13771377 }
0 commit comments