diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-10 11:05:21 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-10 11:05:21 +0000 |
commit | aec1b8dddc68ecb8288ec6132932e4c7b4bca09f (patch) | |
tree | 8138328fe43bcc5fff690dc60caac79aa570ab2b /compiler_and_linker/unsorted/IroLoop.c | |
parent | fcfbafff31869ed808bff0639532db1828660e92 (diff) | |
download | MWCC-aec1b8dddc68ecb8288ec6132932e4c7b4bca09f.tar.gz MWCC-aec1b8dddc68ecb8288ec6132932e4c7b4bca09f.zip |
getting close to done
Diffstat (limited to 'compiler_and_linker/unsorted/IroLoop.c')
-rw-r--r-- | compiler_and_linker/unsorted/IroLoop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler_and_linker/unsorted/IroLoop.c b/compiler_and_linker/unsorted/IroLoop.c index 01391bd..8a7f4fe 100644 --- a/compiler_and_linker/unsorted/IroLoop.c +++ b/compiler_and_linker/unsorted/IroLoop.c @@ -1902,7 +1902,7 @@ IROLoop *ExtractLoopInfo(IRONode *fnode) { if (IS_LINEAR_DIADIC_2(loop->nd18, ELESS, ELESSEQU)) { if (nd21->nodetype == EADDASS) { if (scanind->addConst == 1) - loop->flags |= LoopFlags_100; + loop->flags |= LP_LOOP_STEP_ISADD; if (scanind->addConst > 0) loop->flags |= LP_LOOP_STEP_ISPOS; } else if (nd21->nodetype == EASS && @@ -1910,7 +1910,7 @@ IROLoop *ExtractLoopInfo(IRONode *fnode) { IRO_IsIntConstant(tmp18 = nd21->u.diadic.right->u.diadic.right) && CTool_EndianReadWord32(&tmp18->u.node->data.intval.hi) == 0) { if (CInt64_GetULong(&tmp18->u.node->data.intval) == 1) - loop->flags |= LoopFlags_100; + loop->flags |= LP_LOOP_STEP_ISADD; if (CInt64_GetULong(&tmp18->u.node->data.intval) > 0) loop->flags |= LP_LOOP_STEP_ISPOS; } @@ -1918,7 +1918,7 @@ IROLoop *ExtractLoopInfo(IRONode *fnode) { } else if (nd21->type == IROLinearOp1Arg) { if (nd21->nodetype == EPREINC || nd21->nodetype == EPOSTINC) { if (scanind->addConst == 1) - loop->flags |= LoopFlags_100; + loop->flags |= LP_LOOP_STEP_ISADD; if (scanind->addConst > 0) loop->flags |= LP_LOOP_STEP_ISPOS; } @@ -1997,7 +1997,7 @@ IROLoop *ExtractLoopInfo(IRONode *fnode) { for (scanind = FirstInd; scanind; scanind = scanind->next) { if (scanind->var->object == obj) { IRO_Dump("Induction has DIV: %s\n", obj->name->name); - scanind->flags |= LoopInd_2; + scanind->flags |= LoopInd_HasDiv; } } } @@ -2008,7 +2008,7 @@ IROLoop *ExtractLoopInfo(IRONode *fnode) { for (scanind = FirstInd; scanind && obj; scanind = scanind->next) { if (scanind->var->object == obj) { IRO_Dump("Induction has MOD: %s\n", obj->name->name); - scanind->flags |= LoopInd_1; + scanind->flags |= LoopInd_HasMod; } } } |