-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize
CAST(int <- long)
on 32 bit targets (#53040)
* Optimize CAST(int <- long) on 32 bit targets * Revert "Optimize CAST(int <- long) on 32 bit targets" Revert the implementation in lowering * Optimize CAST(int <- long) on 32 bit targets Move the code from lowering to long decomposition. * Fixed the "Arguments" note for DecomposeNode * Added the function header For OptimizeCastFromDecomposedLong. * Remove the TODO comment While correct, it has questionable value. * Add a more detailed dump output * Do not try to optimize checked casts It is easy to get it wrong. Let the frontend handle this. * Do not depend on tree order Previous version of the code assumed that there could be no nodes between the cast and its operand. That is not a correct assumption to make in LIR.
- Loading branch information
1 parent
cef40a1
commit b5b8863
Showing
2 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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