Skip to content

Commit

Permalink
Disable forward sub randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Sep 22, 2022
1 parent 73ed3cf commit f4cc126
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/jit/forwardsub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ PhaseStatus Compiler::fgForwardSub()
}
#endif

CLRRandom rng;
rng.Init(info.compILCodeSize ^ info.compILlocalsCount ^ 0x12345678);
if (rng.Next(10) == 0)
{
return PhaseStatus::MODIFIED_NOTHING;
}
bool changed = false;

for (BasicBlock* const block : Blocks())
Expand Down

0 comments on commit f4cc126

Please sign in to comment.