[llvm] [X86] Support lowering for APX promoted BMI instructions. (PR #77433)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 01:47:43 PST 2024
================
@@ -955,32 +913,53 @@ let Predicates = [HasBMI2] in {
// shlx %al, (%ecx), %esi
//
// This priority is enforced by IsProfitableToFoldLoad.
- def : Pat<(sra (loadi32 addr:$src1), GR8:$src2),
- (SARX32rm addr:$src1,
+ def : Pat<(op (loadi32 addr:$src1), GR8:$src2),
+ (!cast<Instruction>(name#"32rm"#Suffix) addr:$src1,
----------------
KanRobert wrote:
No need to pass name
https://github.com/llvm/llvm-project/pull/77433
More information about the llvm-commits
mailing list