[Mlir-commits] [mlir] 3ab0067 - [mlir][sparse] layout fixes (NFC)
Aart Bik
llvmlistbot at llvm.org
Thu Dec 29 12:30:11 PST 2022
Author: Aart Bik
Date: 2022-12-29T12:30:02-08:00
New Revision: 3ab0067278422e5a480f91ae5ceecdc34e97fdcb
URL: https://github.com/llvm/llvm-project/commit/3ab0067278422e5a480f91ae5ceecdc34e97fdcb
DIFF: https://github.com/llvm/llvm-project/commit/3ab0067278422e5a480f91ae5ceecdc34e97fdcb.diff
LOG: [mlir][sparse] layout fixes (NFC)
Reviewed By: bixia
Differential Revision: https://reviews.llvm.org/D140761
Added:
Modified:
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td
mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td
index fc4ab2cb792ff..fc4c5d870d62a 100644
--- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td
+++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
+
#ifndef SPARSETENSOR_TYPES
#define SPARSETENSOR_TYPES
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
index c27502ef8cc35..4b92540c47499 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
@@ -398,7 +398,8 @@ static bool vectorizeExpr(PatternRewriter &rewriter, scf::ForOp forOp, VL vl,
vexp = rewriter.create<arith::AddIOp>(loc, veci, incr);
}
return true;
- } // An invariant or reduction. In both cases, we treat this as an
+ }
+ // An invariant or reduction. In both cases, we treat this as an
// invariant value, and rely on later replacing and folding to
// construct a proper reduction chain for the latter case.
if (codegen)
More information about the Mlir-commits
mailing list