forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIT] X86/X64 - Eliminate redundant 'cmp' instructions (dotnet#82750)
* Fixed improper peephole zero-extension removal when cdq/cdqe/cwde instructions are involved * Update regression test * Formatting * Handle cdq differently * Handle cdq differently * Handle cdq differently * Initial commit to eliminate redundant 'cmp' instructions * Take into account cmpxchg * Take into account cmpxchg * Feedback * Temporarily disable cmp opt if we encounter a mov * Allow checking for mov * Allow regardless of targetReg * Allow regardless of targetReg * Checking if an instruction resets a flag. * Remove useless comment * Minor fix * Abort are checking cmp * Some refactoring. Taking into account any instruction that modifies flags. * Minor cleanup * Remove function from header * Quick fix * Sync * Formatting * Only look for 'cmp reg, reg' * Added comment * Update src/coreclr/jit/emitxarch.cpp Co-authored-by: Bruce Forstall <[email protected]> * Update src/coreclr/jit/emitxarch.cpp Co-authored-by: Bruce Forstall <[email protected]> --------- Co-authored-by: Bruce Forstall <[email protected]>
- Loading branch information
1 parent
5130ba9
commit 042a350
Showing
4 changed files
with
99 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
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