-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc_codegen_llvm: make sse4.2 imply crc32 for LLVM 14 #88981
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nagisa (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
Added an assembly test that covers the |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue r=me once the commits are squashed and the perf run does not indicate any significant negative trend. |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 28e0274cb84cda89e3f085b55060d877eeb42c21 with merge 232f9135f71fd7a09bc04b440e3cb7a1966d361a... |
☀️ Try build successful - checks-actions |
Queued 232f9135f71fd7a09bc04b440e3cb7a1966d361a with parent d1d8145, future comparison URL. |
Finished benchmarking commit (232f9135f71fd7a09bc04b440e3cb7a1966d361a): comparison url. Summary: This benchmark run did not return any relevant changes. 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 led to changes in compiler perf. @bors rollup=never |
28e0274
to
1c77964
Compare
Now that the perf run is done, rebased and squashed. |
@bors r+ |
📌 Commit 1c779647259894dbc52b3e571ff8642c21347a35 has been approved by |
⌛ Testing commit 1c779647259894dbc52b3e571ff8642c21347a35 with merge 2c1f37364fd5b287f5dfb5c04e6d29cef63df49b... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Do you have a preference between those options?
…On Sat, Sep 18, 2021, 17:06 Simonas Kazlauskas ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/test/assembly/x86_64-sse_crc.rs
<#88981 (comment)>:
> @@ -0,0 +1,12 @@
+// assembly-output: emit-asm
+// compile-flags: --target=x86_64-unknown-linux-gnu --crate-type staticlib -Ctarget-feature=+sse4.2
+// needs-llvm-components: x86
If you want this to work, you will need to either:
1. Make this a #[no_core] test (allowing this test to run on any
architecture);
2. Make this a // only-x86 test instead (removing the --target flag
and the needs-llvm-components annotation).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#88981 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAE6LJZBGSZ4OEDVWJLCATUCT5L7ANCNFSM5EC563RQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
The That said, I personally prefer the |
1c77964
to
73a5473
Compare
I got a little lost trying to figure out the |
This fixes compiling things like the `snap` crate after https://reviews.llvm.org/D105462. I added a test that verifies the additional attribute gets specified, and confirmed that I can build cargo with both LLVM 13 and 14 with this change applied.
73a5473
to
4185b76
Compare
@bors r+ |
📌 Commit 4185b76 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (840acd3): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This fixes compiling things like the
snap
crate afterhttps://reviews.llvm.org/D105462. I added a test that verifies the
additional attribute gets specified, and confirmed that I can build
cargo with both LLVM 13 and 14 with this change applied.
r? @nagisa cc @nikic