[Mlir-commits] [mlir] [MLIR] [SparseTensor] Implement multiple loop ordering heuristics for sparse tensor dialect (PR #151885)

Aart Bik llvmlistbot at llvm.org
Fri Aug 8 10:50:53 PDT 2025


================
@@ -55,6 +55,33 @@ enum class SparseEmitStrategy {
   kDebugInterface, // generate only place-holder for sparse iteration
 };
 
+namespace sparse_tensor {
+/// Select between different loop ordering strategies.
+/// Loop ordering strategies for sparse tensor compilation.
+/// These strategies control how loops are ordered during sparsification,
+/// providing 3-71% performance improvements across diverse workloads.
----------------
aartbik wrote:

Just saying that each switch may favor particular situations differently suffices

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


More information about the Mlir-commits mailing list