Skip to content

Commit

Permalink
JIT: Fix LocalUses::FindAccess (#87732)
Browse files Browse the repository at this point in the history
The function is looking for access information with a specified type at
a specified offset, but was using the wrong list here. That would in
some cases with overlapping accesses cause us to fail to find the
Access. The net result is that we rarely end up not promoting some
induced accesses that we would otherwise promote.
  • Loading branch information
jakobbotsch authored Jun 19, 2023
1 parent 6bf7c02 commit 2a3f5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/promotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ class LocalUses
}

index++;
} while ((index < m_inducedAccesses.size()) && (m_inducedAccesses[index].Offset == offs));
} while ((index < m_accesses.size()) && (m_accesses[index].Offset == offs));

return nullptr;
}
Expand Down

0 comments on commit 2a3f5be

Please sign in to comment.