Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1000496

Browse files
committed
dbg: move to sub functions for easier filtering tracing
1 parent ac4f464 commit 1000496

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_mir_transform/src/gvn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn propagate_ssa<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
138138
let value = state.simplify_rvalue(rvalue, location);
139139
// FIXME(#112651) `rvalue` may have a subtype to `local`. We can only mark `local` as
140140
// reusable if we have an exact type match.
141-
if state.local_decls[local].ty != rvalue.ty(state.local_decls, tcx) {
141+
if state.local_decls[local].ty != rvalue.ty(state.local_decls, state.tcx) {
142142
return;
143143
}
144144
value

compiler/rustc_mir_transform/src/ssa.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ impl SsaLocals {
147147
})
148148
}
149149

150+
#[instrument(level = "trace", skip_all)]
150151
pub fn for_each_assignment_mut<'tcx>(
151152
&self,
152153
basic_blocks: &mut IndexSlice<BasicBlock, BasicBlockData<'tcx>>,

0 commit comments

Comments
 (0)