Commit 0c86592
[release/10.0] Fix assertions generated by optCreateJumpTableImpliedAssertions (#127003)
Backport of #123240 to release/10.0
/cc @EgorBo
## Customer Impact
- [x] Customer reported
- [ ] Found internally
The JIT compiler could make invalid assumptions regarding the `default:`
case in `switch` statements concerning the possible ranges of the
checked variable. This could lead to incorrect constant folding and
branch removal. The original bug reproduction is available here:
#122254
## Regression
- [x] Yes
- [ ] No
Regressed via #113998 JIT
optimization.
## Testing
A test is added.
## Risk
Low
## Package authoring no longer needed in .NET 9
**IMPORTANT**: Starting with .NET 9, you no longer need to edit a NuGet
package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older
versions.
Co-authored-by: EgorBo <egorbo@gmail.com>1 parent 9db47f0 commit 0c86592
2 files changed
Lines changed: 49 additions & 1 deletion
File tree
- src
- coreclr/jit
- tests/JIT/Regression/JitBlue/Runtime_122254
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5714 | 5714 | | |
5715 | 5715 | | |
5716 | 5716 | | |
5717 | | - | |
| 5717 | + | |
| 5718 | + | |
5718 | 5719 | | |
5719 | 5720 | | |
5720 | 5721 | | |
| |||
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments