Skip to content

Commit

Permalink
Move loop cloning code (#52325)
Browse files Browse the repository at this point in the history
Move it out of optimizer.cpp and into the pre-existing loopcloning.cpp,
where many loop cloning helper classes already existed.

No code changes, just code movement.
  • Loading branch information
BruceForstall authored May 5, 2021
1 parent e23bd5e commit a56a142
Show file tree
Hide file tree
Showing 3 changed files with 1,671 additions and 1,671 deletions.
18 changes: 0 additions & 18 deletions src/coreclr/jit/compiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3556,24 +3556,6 @@ inline bool Compiler::LoopDsc::lpArrLenLimit(Compiler* comp, ArrIndex* index) co
return false;
}

/*****************************************************************************
* Is "var" assigned in the loop "lnum" ?
*/

inline bool Compiler::optIsVarAssgLoop(unsigned lnum, unsigned var)
{
assert(lnum < optLoopCount);
if (var < lclMAX_ALLSET_TRACKED)
{
ALLVARSET_TP vs(AllVarSetOps::MakeSingleton(this, var));
return optIsSetAssgLoop(lnum, vs) != 0;
}
else
{
return optIsVarAssigned(optLoopTable[lnum].lpHead->bbNext, optLoopTable[lnum].lpBottom, nullptr, var);
}
}

/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Expand Down
Loading

0 comments on commit a56a142

Please sign in to comment.