Repository navigation
Conversation
…unds in AssertionProp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0011b98e-8e2b-49f8-8261-844764239c0c
|
Azure Pipelines: Successfully started running 5 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e65c3f35-27f7-4371-a6ef-9672007337c5
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relax the symbolic-bound
GetRangecheck inCompiler::optAssertionPropGlobal_RelOpto cover all ordered signed/unsigned compares (GT_LE,GT_LT,GT_GE,GT_GT) against a never-negative checked bound, instead of restricting it to unsignedGT_GT/GT_LE.For reverse loops over spans/arrays, loop cloning can't statically evaluate the non-constant initial value
span.Length - 1and emits ai >= span.Lengthguard between the fast and slow clones. Previously, AssertionProp didn't fold this signedGEguard, while RangeCheck later removed the bounds check from the slow clone too, leaving a live branch dispatching between two identical loops.