[llvm] [X86] Support lowering for APX promoted BMI instructions. (PR #77433)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 05:40:42 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_Pats<SDNode op, string suffix = ""> {
----------------
KanRobert wrote:

>From other names in this file, e.g `MaskedShiftAmountPats`, `MaskedRotateAmountPats`, `EFLAGSDefiningPats`, maybe `ShiftXPats` is better?

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


More information about the llvm-commits mailing list