From 882a283946e5d116df41805096d1bd5ff7b680da Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 27 Aug 2012 08:44:15 +0000 Subject: [PATCH] Dependences: Print dependences in -analyze output The dependency printing was accidentally removed in during a previous restructuring. llvm-svn: 162662 --- polly/lib/Analysis/Dependences.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polly/lib/Analysis/Dependences.cpp b/polly/lib/Analysis/Dependences.cpp index 25455519561f..114ba47ea1dc 100644 --- a/polly/lib/Analysis/Dependences.cpp +++ b/polly/lib/Analysis/Dependences.cpp @@ -218,6 +218,15 @@ bool Dependences::isParallelDimension(__isl_take isl_set *ScheduleSubset, } void Dependences::printScop(raw_ostream &OS) const { + std::string RAWString, WARString, WAWString; + + RAWString = polly::stringFromIslObj(RAW); + WARString = polly::stringFromIslObj(WAR); + WAWString = polly::stringFromIslObj(WAW); + + OS << "\tRAW dependences:\n\t\t" << RAWString << "\n"; + OS << "\tWAR dependences:\n\t\t" << WARString << "\n"; + OS << "\tWAW dependences:\n\t\t" << WAWString << "\n"; } void Dependences::releaseMemory() {