-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86: Fix redundant compare elimination
Redundant compare elimination is a code generation optimization that attempts to drop redundant compare instructions before a jump. This can happen when the the previous instruction sets condition code flags and is compared with 0. However, some instructions such as DIV and IDIV can modify these flags in undefined ways. This commit lets the code the code generator know that these instructions may modify condition code flags. In addition, the code generator should check if the instruction that modifies these flags belongs to the expected node. Fixes: eclipse-openj9/openj9#17496 Signed-off-by: Bradley Wood <bradley.wood@ibm.com>
- Loading branch information
1 parent
283d187
commit 0478a92
Showing
2 changed files
with
15 additions
and
12 deletions.
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