From aef925e81f792eb5f9bac1b6579d814963a7d1a6 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 13 Jul 2013 16:58:07 +0000 Subject: [PATCH] Small style improvements llvm-svn: 186248 --- polly/lib/Analysis/ScopGraphPrinter.cpp | 5 +++-- polly/lib/Exchange/JSONExporter.cpp | 4 ++-- polly/lib/IndVarSimplify.cpp | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp index 6f7668589ca7..ab87d2678b2b 100644 --- a/polly/lib/Analysis/ScopGraphPrinter.cpp +++ b/polly/lib/Analysis/ScopGraphPrinter.cpp @@ -149,8 +149,9 @@ struct DOTGraphTraits : public DOTGraphTraits { BI != BE; ++BI) if (RI->getRegionFor(*BI) == R) O.indent(2 * (depth + 1)) - << "Node" << static_cast( - RI->getTopLevelRegion()->getBBNode(*BI)) << ";\n"; + << "Node" + << static_cast(RI->getTopLevelRegion()->getBBNode(*BI)) + << ";\n"; O.indent(2 * depth) << "}\n"; } diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index a2664e2db310..f0488a0f2186 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -262,8 +262,8 @@ bool JSONImporter::runOnScop(Scop &scop) { for (ScopStmt::memacc_iterator MI = Stmt->memacc_begin(), ME = Stmt->memacc_end(); MI != ME; ++MI) { - Json::Value accesses = jscop["statements"][statementIdx]["accesses"][ - memoryAccessIdx]["relation"]; + Json::Value accesses = jscop["statements"][statementIdx]["accesses"] + [memoryAccessIdx]["relation"]; isl_map *newAccessMap = isl_map_read_from_str(S->getIslCtx(), accesses.asCString()); isl_map *currentAccessMap = (*MI)->getAccessRelation(); diff --git a/polly/lib/IndVarSimplify.cpp b/polly/lib/IndVarSimplify.cpp index c9866eeff446..6cec03f924ff 100644 --- a/polly/lib/IndVarSimplify.cpp +++ b/polly/lib/IndVarSimplify.cpp @@ -218,8 +218,7 @@ static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { // See if we can convert this to an int64_t uint64_t UIntVal; if (APF.convertToInteger(&UIntVal, 64, true, APFloat::rmTowardZero, - &isExact) != - APFloat::opOK || + &isExact) != APFloat::opOK || !isExact) return false; IntVal = UIntVal; -- 2.34.1