mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Rename LLVM_PGO_CRATES to BACKEND_PGO_CRATES
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user