Fix MOVE_OPERATORS pass #84
@@ -5,18 +5,14 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cmath>
|
|
||||||
#include <climits>
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
|
||||||
#include "../../Utils/errors.h"
|
#include "../../Utils/errors.h"
|
||||||
#include "../../Utils/SgUtils.h"
|
#include "../../Utils/SgUtils.h"
|
||||||
#include "../../GraphCall/graph_calls.h"
|
#include "../../GraphCall/graph_calls.h"
|
||||||
#include "../../GraphCall/graph_calls_func.h"
|
|
||||||
#include "../../CFGraph/CFGraph.h"
|
#include "../../CFGraph/CFGraph.h"
|
||||||
#include "../../CFGraph/IR.h"
|
#include "../../CFGraph/IR.h"
|
||||||
#include "../../GraphLoop/graph_loops.h"
|
|
||||||
#include "move_operators.h"
|
#include "move_operators.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@@ -102,8 +98,6 @@ static bool isBasicBlockInAnyLoop(const SAPFOR::BasicBlock* bb, const vector<SgS
|
|||||||
if (!first || !last)
|
if (!first || !last)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (auto* loop : loops)
|
for (auto* loop : loops)
|
||||||
if (loop && isParentStmt(first, loop) && isParentStmt(last, loop))
|
if (loop && isParentStmt(first, loop) && isParentStmt(last, loop))
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user