Add budget check to RandomPolicy
authorAndy Ayers <andya@microsoft.com>
Fri, 13 May 2016 18:32:49 +0000 (11:32 -0700)
committerAndy Ayers <andya@microsoft.com>
Fri, 13 May 2016 18:32:49 +0000 (11:32 -0700)
commit441934212c3c20c930c05d5e1a5282f1fc2369c4
tree35c3f95e2d54c203ab002752a93c0901a7a89373
parent57d1b4c3e0c3e446609fb000646ab4586a558b11
Add budget check to RandomPolicy

Prevents RandomPolicy from being overly aggressive with small methods
that can lead to excessive inlining.

Closes #4711. Undoes #4704.
src/jit/inlinepolicy.cpp
tests/src/JIT/opt/Inline/tests/LotsOfInlines.csproj