Skip to content

Commit 2346ece

Browse files
committed
fix: ordering
1 parent 8b1ba64 commit 2346ece

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

libs/@local/hashql/mir/src/pass/execution/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,6 @@ impl<'heap, S: BumpAllocator> ExecutionAnalysis<'_, 'heap, S> {
9090
&self.scratch,
9191
);
9292

93-
let block_costs = BasicBlockCostAnalysis {
94-
vertex,
95-
assignments: &assignments,
96-
costs: &statement_costs,
97-
}
98-
.analyze_in(
99-
&TransferCostConfig::new(InformationRange::full()),
100-
&body.basic_blocks,
101-
&self.scratch,
102-
);
103-
10493
let terminators = TerminatorPlacement::new_in(
10594
TransferCostConfig::new(InformationRange::full()),
10695
&self.scratch,
@@ -119,6 +108,17 @@ impl<'heap, S: BumpAllocator> ExecutionAnalysis<'_, 'heap, S> {
119108
}
120109
.run_in(body, &self.scratch);
121110

111+
let block_costs = BasicBlockCostAnalysis {
112+
vertex,
113+
assignments: &assignments,
114+
costs: &statement_costs,
115+
}
116+
.analyze_in(
117+
&TransferCostConfig::new(InformationRange::full()),
118+
&body.basic_blocks,
119+
&self.scratch,
120+
);
121+
122122
let mut solver = PlacementSolverContext {
123123
blocks: &block_costs,
124124
terminators: &terminator_costs,

libs/@local/hashql/mir/src/pass/execution/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn assert_execution<'heap>(
6565
assert_snapshot!(name, output);
6666
}
6767

68-
/// Runs `TraversalExtraction` and `SizeEstimationAnalysis`, then `ExecutionAnalysis`.
68+
/// Runs `SizeEstimationAnalysis`, then `ExecutionAnalysis`.
6969
#[track_caller]
7070
fn run_execution<'heap>(
7171
context: &mut MirContext<'_, 'heap>,

0 commit comments

Comments
 (0)