From 3ab0067278422e5a480f91ae5ceecdc34e97fdcb Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Thu, 29 Dec 2022 10:55:01 -0800 Subject: [PATCH] [mlir][sparse] layout fixes (NFC) Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D140761 --- mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td | 1 + mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorTypes.td index fc4ab2c..fc4c5d8 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 c27502e..4b92540 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(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) -- 2.7.4