Compare commits
3 Commits
replace_io
...
767bc19739
| Author | SHA1 | Date | |
|---|---|---|---|
| 767bc19739 | |||
| d7072257c6 | |||
| 11f371bb89 |
@@ -497,7 +497,7 @@ else()
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
endif()
|
endif()
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -17,14 +17,6 @@ using std::pair;
|
|||||||
|
|
||||||
#define DEBUG_TRACE 0
|
#define DEBUG_TRACE 0
|
||||||
|
|
||||||
static bool hasArrayRef(SgExpression* ex)
|
|
||||||
{
|
|
||||||
if (ex)
|
|
||||||
return isArrayRef(ex) || hasArrayRef(ex->lhs()) || hasArrayRef(ex->rhs());
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool isArrayDeclaration(SgStatement* st)
|
static inline bool isArrayDeclaration(SgStatement* st)
|
||||||
{
|
{
|
||||||
return isSgDeclarationStatement(st) || isSgVarListDeclStmt(st) || isSgNestedVarListDeclStmt(st);
|
return isSgDeclarationStatement(st) || isSgVarListDeclStmt(st) || isSgNestedVarListDeclStmt(st);
|
||||||
@@ -209,15 +201,11 @@ static bool populateDistributedIoArrays(map<SgSymbol*, set<SgStatement*>>& array
|
|||||||
if (!arg)
|
if (!arg)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (hasArrayRef(arg))
|
if (!isArrayRef(arg))
|
||||||
{
|
|
||||||
if (isArrayRef(arg) && arg->lhs())
|
|
||||||
need_replace = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
if (arg->lhs())
|
||||||
|
need_replace = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_SPF "2446"
|
#define VERSION_SPF "2445"
|
||||||
|
|||||||
Reference in New Issue
Block a user