-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Always evaluate constant operands in const-prop #98426
Always evaluate constant operands in const-prop #98426
Conversation
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.
one nit, then r=me
@bors try @rust-timer queue this might actually impact perf, if unlikely |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 18e0d916581dc54ddd13e1643d25c81408ad1987 with merge 67ad21cde5ced3782151744e37f78e23af0e8b24... |
☀️ Try build successful - checks-actions |
Queued 67ad21cde5ced3782151744e37f78e23af0e8b24 with parent d017d59, future comparison URL. |
Finished benchmarking commit (67ad21cde5ced3782151744e37f78e23af0e8b24): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes |
the way that mostly I consider this a bug fix. @bors r+ |
📌 Commit 18e0d916581dc54ddd13e1643d25c81408ad1987 has been approved by |
Const-prop does not run in the body of a I am fairly sure I added a test for this so it's probably fine, just double-checking. :) |
⌛ Testing commit 18e0d916581dc54ddd13e1643d25c81408ad1987 with merge efa8ecf1ad8601a2b9aa8549d40052761450cc9d... |
💔 Test failed - checks-actions |
@bors retry |
@Dylan-DPC this doesn't look spurious. Can you r- this, please? |
@bors r- |
This comment has been minimized.
This comment has been minimized.
Triage: |
I don't know why these lints are output on that machine (which seems to be a 64-bit machine):
This looks like a miri-related lint, @RalfJung do you have any idea why we get those lints on that machine, but not on the ones in the PR CI? |
Maybe different flags? Debug vs release mode can make a difference. |
Also make sure you rebase, there have been some changes wrt binop overflow checking a few weeks ago. |
18e0d91
to
5726ed7
Compare
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
This comment has been minimized.
This comment has been minimized.
The job Click to see the possible cause of the failure (guessed by this bot)
|
The error we get in the failing mir-opt test looks wrong. |
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 guess the failing mir opt test shows that we fail to add some constants to https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.required_consts though I don't know why, how or where.
- name: dist-i586-gnu-i586-i686-musl | ||
os: ubuntu-20.04-xl | ||
env: {} |
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.
did this accidentally get added during a rebase?
|
||
|
||
- name: dist-i586-gnu-i586-i686-musl | ||
<<: *job-linux-xl | ||
|
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.
same here
Promoteds don't get added there. That is by design since their evaluation cannot fail (in Not sure if that's the issue here, though. |
☔ The latest upstream changes (presumably #101152) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm going to close this, not familiar enough with const prop to tell what's really going on here. |
r? @lcnr