Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main to release/dev17.10 #16826

Merged
merged 8 commits into from
Mar 7, 2024

Conversation

dotnet-bot
Copy link
Contributor

This is an automatically generated pull request from main into release/dev17.10.

Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯

Troubleshooting conflicts

Identify authors of changes which introduced merge conflicts

Scroll to the bottom, then for each file containing conflicts copy its path into the following searches:

Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts.

Resolve merge conflicts using your local repo

Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub.

git fetch --all
git checkout -t upstream/merges/main-to-release/dev17.10
git reset --hard upstream/release/dev17.10
git merge upstream/main
# Fix merge conflicts
git commit
git push upstream merges/main-to-release/dev17.10 --force

psfinaki and others added 7 commits March 6, 2024 12:36
A companion to dotnet/msbuild#9743 to ensure that more sourcelink/determinism-related flags correctly cause the compiler to be invoked when they change
#16650)

* Lower integral ranges to fast while-loops

* Lower for-loops over integral ranges to fast while-loops for all
  built-in integral types.

* Lower `[start..finish]`, `[start..step..finish]`, `[|start..finish|]`,
  `[|start..step..finish|]` to fast integral while-loop initializers.

* Add int32 tests

* Update baselines

* Update release notes

* Fmt

* Update more baselines

* Typo

* Update comments

* Refactor for clarity

* Fix debug assert

* Just precompute count for all scenarios

* Add missing detail to comment

* Don't need to expose that

* Remove bad & unneeded comparison

* Comments

* Better ranges

* Update baselines

* Use `Seq.toArray`

This was failing only on net472. For some reason, `sbyte` arrays (as
well as `byte` arrays, since type-testing for either will match both)
were using `System.Linq.Enumerable.ToArray` instead of `Seq.toArray`.

* Better name

* Hmm

* Hmm

* Update baselines

* Meh

* That was it

* Better comments

* Clarity

* Update net472 baseline

* Use simpler abs

* Use correctly typed (& sized) one

* Handle
ativeint literals properly

* Handle conversions like C# does

* Update baselines

* Expose `mkTypedZero` & `mkTypedOne`

* Update baselines

* integral → numeric

* Use `mkTypedOne`

* Handle unspecialized cases

* Add comments to range tests

* Add `LowerIntegralRangesToFastLoops` lang feature

* Use better name

* Missed a spot

* Handle MinValue..MaxValue, MaxValue..-1..MinValue

* When the range is `MinValue..MaxValue`, `MinValue..1..MaxValue`, or
  `MaxValue..-1..MinValue`, the count will not fit in the original
  type's range, so we must widen it to the next-widest unsigned type.
  There is no easy way to do that for 64-bit types, so an overflow
  exception is raised at runtime.

* Add tests for MinValue..MaxValue, &c.

* Update baselines

* Parameterize zero & one

* This forces the "runtime" tests to excercise the all-runtime count
  calculation code.

* Add more tests for range edge cases

* Don't check for ovf when not needed

* We don't need to check for overflow when converting the index variable
  to a native int to index into the array, since we know it is always
  less than count, and, if we've made it that far, we already know that
  count didn't overflow when we initialized the array.

* Update baselines

* Add some debug stepping samples

* Add comment to help future contributors

* This happened to me, and it could easily happen again :)
  Maybe someday these tests should be wrapped in a timeout or the like.

* Handle ranges with count 2⁶⁴ + 1

* Add more comprehensive IL tests

* Better to have 'em.

* Remove FSharpSuite tests

* It's easier to update the baselines in the component tests when
  needed.

* Fix types

* Update baselines

* More sensible

* This does not change behavior, but the IL doesn't look as weird.

* Update baselines

* Minor cleanup & clarification

* Only emit runtime check for zero step once

* Need that

* Update baseline

* Missed in merge

* Update baseline

* Update baselines

* One more

* Emit a ~better approximation of a do-while loop

---------

Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
* up

* Update optimizations-equality.md
@dotnet-bot dotnet-bot force-pushed the merges/main-to-release/dev17.10 branch from 1d6d989 to 35e5347 Compare March 7, 2024 09:05
@dotnet-bot dotnet-bot requested a review from a team as a code owner March 7, 2024 09:05
Copy link
Contributor

github-actions bot commented Mar 7, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Warning

No PR link found in some release notes, please consider adding it.

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.300.md No current pull request URL (#16826) found, please consider adding it
LanguageFeatures.fsi docs/release-notes/.Language/preview.md No current pull request URL (#16826) found, please consider adding it

@KevinRansom KevinRansom merged commit 661d88a into release/dev17.10 Mar 7, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants