Skip to content

Commit

Permalink
Introduce switch for stress-morphing
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed Apr 28, 2023
1 parent 5a30553 commit 8e14aaf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/coreclr/jit/flowgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2901,6 +2901,19 @@ PhaseStatus Compiler::fgRationalizeAssignments()

compAssignmentRationalized = true;

#ifdef DEBUG
if (JitConfig.JitStressMorphStores())
{
for (BasicBlock* block : Blocks())
{
for (Statement* stmt : block->Statements())
{
fgMorphBlockStmt(block, stmt DEBUGARG("fgRationalizeAssignments"));
}
}
}
#endif // DEBUG

return PhaseStatus::MODIFIED_EVERYTHING;
}

Expand Down
1 change: 1 addition & 0 deletions src/coreclr/jit/jitconfigvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ CONFIG_INTEGER(JitStressModeNamesOnly, W("JitStressModeNamesOnly"), 0) // Intern
CONFIG_INTEGER(JitStressProcedureSplitting, W("JitStressProcedureSplitting"), 0) // Always split after the first basic
// block. Skips functions with EH
// for simplicity.
CONFIG_INTEGER(JitStressMorphStores, W("JitStressMorphStores"), 0) // Morph trees after assignment rationalization
CONFIG_INTEGER(JitStressRegs, W("JitStressRegs"), 0)
CONFIG_STRING(JitStressRegsRange, W("JitStressRegsRange")) // Only apply JitStressRegs to methods in this hash range

Expand Down

0 comments on commit 8e14aaf

Please sign in to comment.