Phase 33 NORM canon test: enforce normalized dev route for P1/P2/JP mini
This commit is contained in:
@ -20,11 +20,19 @@ pub fn optimize_boxfield_operations(
|
||||
let mut i = 0usize;
|
||||
while i < block.instructions.len() {
|
||||
// Get span for current instruction (or unknown if missing)
|
||||
let span_i = block.instruction_spans.get(i).copied().unwrap_or_else(Span::unknown);
|
||||
let span_i = block
|
||||
.instruction_spans
|
||||
.get(i)
|
||||
.copied()
|
||||
.unwrap_or_else(Span::unknown);
|
||||
|
||||
// Look ahead for simple store-followed-by-load on same box/index
|
||||
if i + 1 < block.instructions.len() {
|
||||
let span_i1 = block.instruction_spans.get(i + 1).copied().unwrap_or_else(Span::unknown);
|
||||
let span_i1 = block
|
||||
.instruction_spans
|
||||
.get(i + 1)
|
||||
.copied()
|
||||
.unwrap_or_else(Span::unknown);
|
||||
match (&block.instructions[i], &block.instructions[i + 1]) {
|
||||
(
|
||||
I::BoxCall {
|
||||
|
||||
Reference in New Issue
Block a user