-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inlining heuristic is unstable [was: 2x slowdown in randn and randexp] #15596
Comments
The slowdown here is more than 100pct. on my machine when comparing before and after the commit listed above. It's a quite severe regression in two important functions so I've marked it for 0.5.0. |
it should be possible to disable that commit by commenting out 6382116?w=1#diff-c0d983631c937ee5acfd0137cd7332deR1681 |
It appears that the commit I listed above is slightly wrong. A new bisection showed that it is the nearby commit 79b08ca and I consistently see a 50pct. slow down before and after that commit. Below, I've listed the full output from Good
Bad
|
@vtjnash I tried what you suggested in #15596 (comment) and it fixed the issue. I had to comment out a few things in |
With andreas's help, I tracked this down to an instability in the inlining heuristic. Since we are resolving a cycle here, we need to split for a quick fix, it might be enough to just invert the fixed-point finish loop at 6382116?w=1#diff-c0d983631c937ee5acfd0137cd7332deR1702. right now it's in provably the wrong order. at least if we did this loop in reverse, it wouldn't be always wrong. |
Ah, very interesting! |
I've just noticed that
randn
andrandexp
are much slower than they used to be. This might the reason that the tests for Distributions are timing out but I'm not completely sure. I've run agit bisect
and the blame goes to638211679b08ca so cc: @vtjnashThe text was updated successfully, but these errors were encountered: