Skip to content

[libc][bazel] Re-enable memcpy prefetching on x86. #138945

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

vonosmas
Copy link
Contributor

@vonosmas vonosmas commented May 7, 2025

It was re-enabled downstream after further performance analysis, so we can revert c65ed96, effectively re-landing the change.

It was re-enabled downstream after further performance analysis, so
we can revert c65ed96, effectively
re-landing the change.
@vonosmas vonosmas requested a review from gchatelet May 7, 2025 19:28
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels May 7, 2025
@llvmbot
Copy link
Member

llvmbot commented May 7, 2025

@llvm/pr-subscribers-libc

Author: Alexey Samsonov (vonosmas)

Changes

It was re-enabled downstream after further performance analysis, so we can revert c65ed96, effectively re-landing the change.


Full diff: https://github.com/llvm/llvm-project/pull/138945.diff

1 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl (+1-1)
diff --git a/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl b/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
index f65da9e98226b..96d7fa86e9ddf 100644
--- a/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
@@ -24,7 +24,7 @@ LIBC_CONFIGURE_OPTIONS = [
     # Documentation in libc/src/string/memory_utils/...
     # "LIBC_COPT_MEMCPY_USE_EMBEDDED_TINY",
     # "LIBC_COPT_MEMCPY_X86_USE_REPMOVSB_FROM_SIZE",
-    # "LIBC_COPT_MEMCPY_X86_USE_SOFTWARE_PREFETCHING",
+    "LIBC_COPT_MEMCPY_X86_USE_SOFTWARE_PREFETCHING",
     "LIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING",
 
     # Documentation in libc/docs/dev/printf_behavior.rst

@vonosmas vonosmas requested a review from michaelrj-google May 7, 2025 21:25
@vonosmas vonosmas merged commit 98d26b8 into llvm:main May 8, 2025
12 checks passed
petrhosek pushed a commit to petrhosek/llvm-project that referenced this pull request May 8, 2025
It was re-enabled downstream after further performance analysis, so we
can revert c65ed96, effectively
re-landing the change.
@vonosmas vonosmas deleted the libc-bazel-cfg-update branch May 8, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel libc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants