Uh oh!
There was an error while loading. Please reload this page.
Inline {min,max}_value even in debug builds - #64941
Conversation
a7dec48 to
3b49ab6CompareCentril
commented
Oct 1, 2019
@bors try @rust-timer queue |
rust-timer
commented
Oct 1, 2019
Awaiting bors try build completion |
bors
commented
Oct 1, 2019
⌛ Trying commit 3b49ab6 with merge 61430923b8b2f3e7565c7aa30a3eb96474641bd6... |
bors
commented
Oct 1, 2019
☀️ Try build successful - checks-azure |
rust-timer
commented
Oct 1, 2019
Queued 61430923b8b2f3e7565c7aa30a3eb96474641bd6 with parent 22bc9e1, future comparison URL. |
jonas-schievink
commented
Oct 1, 2019
Isn't perf only measuring compiler performance (which is always built in release mode)? |
tesuji
commented
Oct 1, 2019
So how can I measure debug build of compiler? I saw this code generated from debug build (godbolt link: https://godbolt.org/z/9cpH6U) core::num::<impl u32>::max_value:moveax,4294967295retexample::bar:pushraxcall core::num::<impl u32>::max_valuemov dword ptr [rsp+4],eaxmoveax, dword ptr [rsp+4]poprcxretThat code is generated from: pubfnbar() -> u32{
u32::max_value()}So I think |
{min,max}_value even in debug builds{min,max}_value even in debug buildstesuji
commented
Oct 2, 2019
r? @nnethercote (randomly assign) |
nnethercote
commented
Oct 3, 2019
@bors r+ |
bors
commented
Oct 3, 2019
📌 Commit 3b49ab6 has been approved by |
bors
commented
Oct 3, 2019
⌛ Testing commit 3b49ab6 with merge aa84c93d98bab674e7b7953cc30dd70f6d4cd0c1... |
…hercote
Inline `{min,max}_value` even in debug builds
I think it is worth to inline `{min,max}_value` even in debug builds.
See this godbolt link: https://godbolt.org/z/-COkVSCentril
commented
Oct 3, 2019
@bors retry rolled up. |
bors
commented
Oct 3, 2019
☔ The latest upstream changes (presumably #65045) made this pull request unmergeable. Please resolve the merge conflicts. |
scottmcm
commented
Oct 10, 2019
The godbolt example says to me to just stop using See also rust-lang/rfcs#2700 |
I think it is worth to inline
{min,max}_valueeven in debug builds.See this godbolt link: https://godbolt.org/z/-COkVS