[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:45:35 PST 2024


================
@@ -1864,62 +1864,37 @@ def : Pat<(fshl GR64:$src1, GR64:$src2, (shiftMask64 CL)),
 def : Pat<(fshr GR64:$src2, GR64:$src1, (shiftMask64 CL)),
           (SHRD64rrCL GR64:$src1, GR64:$src2)>;
 
-let Predicates = [HasBMI2] in {
+multiclass bmi_shift_mask_patterns<SDNode op, string name, string Suffix = ""> {
----------------
KanRobert wrote:

No need to pass "name" as an argument, you only need to use "defm SARX :" at line 1889.

https://github.com/llvm/llvm-project/pull/77433


More information about the llvm-commits mailing list