[Mlir-commits] [mlir] [mlir][ArmSVE] Lower predicate-sized vector.create_masks to whilelt (PR #95531)

Cullen Rhodes llvmlistbot at llvm.org
Fri Jun 14 06:19:35 PDT 2024


================
@@ -169,6 +203,9 @@ void mlir::populateArmSVELegalizeForLLVMExportPatterns(
                ConvertFromSvboolOpLowering,
                ZipX2OpLowering,
                ZipX4OpLowering>(converter);
+  // Add predicate conversion with a high benefit as it produces much nicer code
+  // than the generic lowering.
+  patterns.add<PredicateCreateMaskOpLowering>(converter, /*benifit=*/4096);
----------------
c-rhodes wrote:

nit: spelling
```suggestion
  patterns.add<PredicateCreateMaskOpLowering>(converter, /*benefit=*/4096);
```

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


More information about the Mlir-commits mailing list