-
Notifications
You must be signed in to change notification settings - Fork 13.4k
always try inlining functions which do not call other functions #75495
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit bea062f with merge ad4a8ac0048cc0c83e82f277bfd16984c79b1c44... |
FYI: If the intention is to enable this on mir-opt-level=1, it might be necessary to resolve #71793 first. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-actions |
looks like ra also breaks because of #68347 |
} | ||
// Do wrapping math to allow e.g. `Step::forward(-128i8, 255)`. | ||
start.wrapping_add(n as Self) | ||
start + (n as Self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intention here was to inherit the user's setting for debug assertion, even when std
is compiled in release mode (as it usually is).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, will have to rewrite this again before merging 👍
I think "functions which do not call other function" used to be called leaf functions. |
☔ The latest upstream changes (presumably #75549) made this pull request unmergeable. Please resolve the merge conflicts. |
closing this for now as there are still some bugs with inlining we have to fix first |
rebased on top of #77306 meaning that all inlining ICE I know of are fixed, let's see if we can get a perf run going here |
@bors try @rust-timer queue looks like all test failures are expected |
Awaiting bors try build completion |
I first rebased and then tried to open let's open another PR |
@Mark-Simulacrum should I do something to cancel rust-timer here? |
Don't worry about it -- it'll just stick around but that's not a problem. |
This is still a bit broken.
r? @wesleywiser