Rename LLVM_PGO_CRATES to BACKEND_PGO_CRATES

This commit is contained in:
Jakub Beránek
2026-10-02 12:53:38 +02:00
parent 6006fd0394
commit 4b9666a948
3 changed files with 8 additions and 5 deletions

View File

@@ -1400,8 +1400,10 @@ fn prepare_source_tarball<'a>(
builder.require_and_update_all_submodules();
// Vendor packages that are required by opt-dist to collect PGO profiles.
let pkgs_for_pgo_training =
build_helper::LLVM_PGO_CRATES.iter().chain(build_helper::RUSTC_PGO_CRATES).map(|pkg| {
let pkgs_for_pgo_training = build_helper::BACKEND_PGO_CRATES
.iter()
.chain(build_helper::RUSTC_PGO_CRATES)
.map(|pkg| {
let mut manifest_path =
builder.src.join("./src/tools/rustc-perf/collector/compile-benchmarks");
manifest_path.push(pkg);

View File

@@ -11,8 +11,8 @@ pub mod stage0_parser;
pub mod targets;
pub mod util;
/// The default set of crates for opt-dist to collect LLVM profiles.
pub const LLVM_PGO_CRATES: &[&str] = &[
/// The default set of crates for opt-dist to collect backend (LLVM, Cranelift) profiles.
pub const BACKEND_PGO_CRATES: &[&str] = &[
"syn-2.0.101",
"cargo-0.87.1",
"serde-1.0.219",

View File

@@ -1,5 +1,5 @@
use anyhow::Context;
use build_helper::{LLVM_PGO_CRATES, RUSTC_PGO_CRATES};
use build_helper::{BACKEND_PGO_CRATES, RUSTC_PGO_CRATES};
use camino::{Utf8Path, Utf8PathBuf};
use humansize::BINARY;
@@ -109,6 +109,7 @@ fn log_profile_stats(
pub fn llvm_benchmarks(env: &Environment) -> CmdBuilder {
init_compiler_benchmarks(env, &["Debug", "Opt"], &["Full"], LLVM_PGO_CRATES)
init_compiler_benchmarks(env, &["Debug", "Opt"], &["Full"], BACKEND_PGO_CRATES)
}
// Here we're profiling the `rustc` frontend, so we also include `Check`.