fixed merging

This commit is contained in:
ALEXks
2025-06-11 11:31:48 +03:00
parent 1895a4b02a
commit 8ad19cbfa5
5 changed files with 17 additions and 17 deletions

View File

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