Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optimization "X & 1 == 1" to "X & 1" (dotnet#61412) (dotnet#62818)
* Add optimization "X & 1 == 1" to "X & 1" (dotnet#61412) * Moved the optimization to the morph phase (dotnet#61412) * Done in post-order (dotnet#61412) * Moved the optimization into fgOptimizeEqualityComparisonWithConst (dotnet#61412) * Some corrections due the comments (dotnet#61412) * Fix of the picture (dotnet#61412) * Add optNarrowTree use (dotnet#61412) * Change narrowing to the type check (dotnet#61412) * Fix regressions (dotnet#61412) * Moved the optimization to the lowering phase (dotnet#61412) * Reverted Morph changes (dotnet#61412) * Moved the optimization into OptimizeConstCompare method (dotnet#61412) * Add GT_EQ check(dotnet#61412)
- Loading branch information