Fix some rebasing fallout.
This commit is contained in:
parent
11e4844480
commit
ad65e3e6bc
4 changed files with 10 additions and 14 deletions
|
@ -3079,6 +3079,7 @@ dependencies = [
|
||||||
"graphviz",
|
"graphviz",
|
||||||
"jobserver",
|
"jobserver",
|
||||||
"log",
|
"log",
|
||||||
|
"measureme",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"polonius-engine",
|
"polonius-engine",
|
||||||
"rustc-rayon",
|
"rustc-rayon",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use crate::hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX, LOCAL_CRATE};
|
|
||||||
use crate::hir::map::definitions::DefPathData;
|
use crate::hir::map::definitions::DefPathData;
|
||||||
use crate::ty::context::TyCtxt;
|
use crate::ty::context::TyCtxt;
|
||||||
use crate::ty::query::config::QueryConfig;
|
use crate::ty::query::config::QueryConfig;
|
||||||
|
@ -7,6 +6,7 @@ use measureme::{StringComponent, StringId};
|
||||||
use rustc_data_structures::fx::FxHashMap;
|
use rustc_data_structures::fx::FxHashMap;
|
||||||
use rustc_data_structures::profiling::SelfProfiler;
|
use rustc_data_structures::profiling::SelfProfiler;
|
||||||
use rustc_data_structures::sharded::Sharded;
|
use rustc_data_structures::sharded::Sharded;
|
||||||
|
use rustc_hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX, LOCAL_CRATE};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
|
|
|
@ -334,11 +334,7 @@ pub fn from_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||||
bx: &mut Bx,
|
bx: &mut Bx,
|
||||||
val: Bx::Value,
|
val: Bx::Value,
|
||||||
) -> Bx::Value {
|
) -> Bx::Value {
|
||||||
if bx.cx().val_ty(val) == bx.cx().type_i1() {
|
if bx.cx().val_ty(val) == bx.cx().type_i1() { bx.zext(val, bx.cx().type_i8()) } else { val }
|
||||||
bx.zext(val, bx.cx().type_i8())
|
|
||||||
} else {
|
|
||||||
val
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
pub fn to_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||||
|
@ -887,11 +883,7 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
|
||||||
|
|
||||||
if tcx.dep_graph.try_mark_green(tcx, &dep_node).is_some() {
|
if tcx.dep_graph.try_mark_green(tcx, &dep_node).is_some() {
|
||||||
// We can re-use either the pre- or the post-thinlto state
|
// We can re-use either the pre- or the post-thinlto state
|
||||||
if tcx.sess.lto() != Lto::No {
|
if tcx.sess.lto() != Lto::No { CguReuse::PreLto } else { CguReuse::PostLto }
|
||||||
CguReuse::PreLto
|
|
||||||
} else {
|
|
||||||
CguReuse::PostLto
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
CguReuse::No
|
CguReuse::No
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,10 @@ impl SelfProfilerRef {
|
||||||
/// a measureme event, "verbose" generic activities also print a timing entry to
|
/// a measureme event, "verbose" generic activities also print a timing entry to
|
||||||
/// stdout if the compiler is invoked with -Ztime or -Ztime-passes.
|
/// stdout if the compiler is invoked with -Ztime or -Ztime-passes.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn verbose_generic_activity<'a>(&'a self, event_id: &'a str) -> VerboseTimingGuard<'a> {
|
pub fn verbose_generic_activity<'a>(
|
||||||
|
&'a self,
|
||||||
|
event_id: &'static str,
|
||||||
|
) -> VerboseTimingGuard<'a> {
|
||||||
VerboseTimingGuard::start(
|
VerboseTimingGuard::start(
|
||||||
event_id,
|
event_id,
|
||||||
self.print_verbose_generic_activities,
|
self.print_verbose_generic_activities,
|
||||||
|
@ -589,8 +592,8 @@ fn get_resident() -> Option<usize> {
|
||||||
cb: DWORD,
|
cb: DWORD,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
let mut pmc: PROCESS_MEMORY_COUNTERS = unsafe { mem::zeroed() };
|
let mut pmc: PROCESS_MEMORY_COUNTERS = unsafe { std::mem::zeroed() };
|
||||||
pmc.cb = mem::size_of_val(&pmc) as DWORD;
|
pmc.cb = std::mem::size_of_val(&pmc) as DWORD;
|
||||||
match unsafe { GetProcessMemoryInfo(GetCurrentProcess(), &mut pmc, pmc.cb) } {
|
match unsafe { GetProcessMemoryInfo(GetCurrentProcess(), &mut pmc, pmc.cb) } {
|
||||||
0 => None,
|
0 => None,
|
||||||
_ => Some(pmc.WorkingSetSize as usize),
|
_ => Some(pmc.WorkingSetSize as usize),
|
||||||
|
|
Loading…
Add table
Reference in a new issue