Small style improvements

llvm-svn: 186248
This commit is contained in:
Tobias Grosser 2013-07-13 16:58:07 +00:00
parent c74fcc9972
commit aef925e81f
3 changed files with 6 additions and 6 deletions

View File

@ -149,8 +149,9 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> {
BI != BE; ++BI)
if (RI->getRegionFor(*BI) == R)
O.indent(2 * (depth + 1))
<< "Node" << static_cast<const void *>(
RI->getTopLevelRegion()->getBBNode(*BI)) << ";\n";
<< "Node"
<< static_cast<void *>(RI->getTopLevelRegion()->getBBNode(*BI))
<< ";\n";
O.indent(2 * depth) << "}\n";
}

View File

@ -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();

View File

@ -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;