fixed merging
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "expr_transform.h"
|
||||
#include "errors.h"
|
||||
#include "SgUtils.h"
|
||||
#include "utils.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <queue>
|
||||
@@ -17,19 +18,6 @@ using std::make_pair;
|
||||
using std::queue;
|
||||
using std::wstring;
|
||||
|
||||
static int gcd(int a, int b)
|
||||
{
|
||||
while (a != b)
|
||||
{
|
||||
if (a > b)
|
||||
a = a - b;
|
||||
else
|
||||
b = b - a;
|
||||
}
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
static SgSymbol* getLoopSymbol(const LoopGraph* loop)
|
||||
{
|
||||
if (!loop || !loop->isFor)
|
||||
@@ -1385,7 +1373,6 @@ static int getNewStep(SgForStmt* firstLoopStmt, SgForStmt* loopStmt)
|
||||
step2Val = step2->valueInteger();
|
||||
|
||||
int stepGcd = gcd(std::abs(step1Val), std::abs(step2Val));
|
||||
|
||||
int newStep = stepGcd;
|
||||
|
||||
int startDifference = 0;
|
||||
|
||||
Reference in New Issue
Block a user