Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
dotnet
runtime
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
678
(678)
Discussions
Actions
Projects
Security and quality
87
(87)
Insights
More
items
Add optimization "X & 1 == 1" to "X & 1" (#61412)
- #62818
#62818
Merged
JulieLeeMSFT
merged 13 commits into
dotnet:main
dotnet/runtime:main
from
SkiFoD:skifod/issue-61412
SkiFoD/runtime:skifod/issue-61412
Copy head branch name to clipboard
Mar 21, 2022
Conversation
Commits
13
(13)
Checks
Files changed
Merged
Add optimization "X & 1 == 1" to "X & 1" (#61412)
#62818
JulieLeeMSFT
merged 13 commits into
dotnet:main
dotnet/runtime:main
from
SkiFoD:skifod/issue-61412
SkiFoD/runtime:skifod/issue-61412
Copy head branch name to clipboard
Commits
Commits on Mar 15, 2022
Add optimization "X & 1 == 1" to "X & 1" (#61412)
SkiFoD
committed
b84813f
View commit details
Copy full SHA for b84813f
Browse repository at this point
Moved the optimization to the morph phase (#61412)
SkiFoD
committed
3fc4ee3
View commit details
Copy full SHA for 3fc4ee3
Browse repository at this point
Done in post-order (#61412)
SkiFoD
committed
b1d57dc
View commit details
Copy full SHA for b1d57dc
Browse repository at this point
Moved the optimization into fgOptimizeEqualityComparisonWithConst (#61412)
SkiFoD
committed
9e7d39a
View commit details
Copy full SHA for 9e7d39a
Browse repository at this point
Some corrections due the comments (#61412)
SkiFoD
committed
232500b
View commit details
Copy full SHA for 232500b
Browse repository at this point
Fix of the picture (#61412)
SkiFoD
committed
4e199b4
View commit details
Copy full SHA for 4e199b4
Browse repository at this point
Add optNarrowTree use (#61412)
SkiFoD
committed
4e33287
View commit details
Copy full SHA for 4e33287
Browse repository at this point
Change narrowing to the type check (#61412)
SkiFoD
committed
9011df3
View commit details
Copy full SHA for 9011df3
Browse repository at this point
Fix regressions (#61412)
SkiFoD
committed
45ebaa4
View commit details
Copy full SHA for 45ebaa4
Browse repository at this point
Moved the optimization to the lowering phase (#61412)
SkiFoD
committed
0bf5965
View commit details
Copy full SHA for 0bf5965
Browse repository at this point
Reverted Morph changes (#61412)
SkiFoD
committed
f62c64b
View commit details
Copy full SHA for f62c64b
Browse repository at this point
Moved the optimization into OptimizeConstCompare method (#61412)
SkiFoD
committed
f64a8ac
View commit details
Copy full SHA for f64a8ac
Browse repository at this point
Add GT_EQ check(#61412)
SkiFoD
committed
175bac2
View commit details
Copy full SHA for 175bac2
Browse repository at this point
You can’t perform that action at this time.