Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search through associative operators for BMI patterns (BLSI, BLSR, BL…
…SMSK) (a & (-b)) & b is often lowered as: %sub = sub i32 0, %b %and0 = and i32 %sub, %a %and1 = and i32 %and0, %b Which won't get detected by the BLSI pattern as b & -b are never in the same SDNode. This patch will do a small search through associative operators and try and place BMI patterns in the same node so they will hit the pattern. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D141179
- Loading branch information
1 parent
cf8fadc
commit 3857d9d
Showing
2 changed files
with
80 additions
and
29 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