Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve loop unrolling documentation #52099

Merged
merged 1 commit into from Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/coreclr/jit/compiler.h
Expand Up @@ -6246,11 +6246,11 @@ class Compiler
PhaseStatus optOptimizeLayout(); // Optimize the BasicBlock layout of the method
PhaseStatus optFindLoops(); // Finds loops and records them in the loop table

void optCloneLoops();
PhaseStatus optCloneLoops();
void optCloneLoop(unsigned loopInd, LoopCloneContext* context);
void optEnsureUniqueHead(unsigned loopInd, BasicBlock::weight_t ambientWeight);
void optUnrollLoops(); // Unrolls loops (needs to have cost info)
void optRemoveRedundantZeroInits();
PhaseStatus optUnrollLoops(); // Unrolls loops (needs to have cost info)
void optRemoveRedundantZeroInits();

protected:
// This enumeration describes what is killed by a call.
Expand Down Expand Up @@ -6580,6 +6580,10 @@ class Compiler

void optInvertWhileLoop(BasicBlock* block);

private:
static bool optIterSmallOverflow(int iterAtExit, var_types incrType);
static bool optIterSmallUnderflow(int iterAtExit, var_types decrType);

bool optComputeLoopRep(int constInit,
int constLimit,
int iterInc,
Expand All @@ -6590,7 +6594,6 @@ class Compiler
bool dupCond,
unsigned* iterCount);

private:
static fgWalkPreFn optIsVarAssgCB;

protected:
Expand Down