-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AArch64: Use negated constant value for add/sub node if it is more co…
…ncise This commit changes `genericBinaryEvaluator` to use negated value for add/sub operation if the negated value can be loaded into the register with the fewer instructions than original value. Also, `genericBinaryEvaluator` is changed to set a register to the constant node if the constant cannot be encoded into the instruction and the negated value is not used. This change prevents constant loading instructions from generated multiple times even if the constant node has multiple reference counts. Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
- Loading branch information
Akira Saitoh
committed
Jul 15, 2021
1 parent
3d4e5f6
commit 31a3582
Showing
3 changed files
with
142 additions
and
22 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
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