-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Generate bexti for (select(setcc eq (and x, c))) where c is p…
…ower of 2. (#73649) Currently, llvm can transform (setcc ne (and x, c)) to (bexti x, log2(c)) where c is power of 2. This patch transform (select (setcc ne (and x, c)), T, F) into (select (setcc eq (and x, c)), F, T). It is benefit to the case c is not fit to 12-bits.
- Loading branch information
Showing
2 changed files
with
317 additions
and
190 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
Oops, something went wrong.