Skip to content

Commit 997a664

Browse files
committed
Fix format
1 parent 423de13 commit 997a664

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ static Value genVectorReducInit(PatternRewriter &rewriter, Location loc,
198198
case vector::CombiningKind::ADD:
199199
case vector::CombiningKind::XOR:
200200
// Initialize reduction vector to: | 0 | .. | 0 | r |
201-
return rewriter.create<vector::InsertOp>(
202-
loc, r, constantZero(rewriter, loc, vtp),
203-
constantIndex(rewriter, loc, 0));
201+
return rewriter.create<vector::InsertOp>(loc, r,
202+
constantZero(rewriter, loc, vtp),
203+
constantIndex(rewriter, loc, 0));
204204
case vector::CombiningKind::MUL:
205205
// Initialize reduction vector to: | 1 | .. | 1 | r |
206-
return rewriter.create<vector::InsertOp>(
207-
loc, r, constantOne(rewriter, loc, vtp),
208-
constantIndex(rewriter, loc, 0));
206+
return rewriter.create<vector::InsertOp>(loc, r,
207+
constantOne(rewriter, loc, vtp),
208+
constantIndex(rewriter, loc, 0));
209209
case vector::CombiningKind::AND:
210210
case vector::CombiningKind::OR:
211211
// Initialize reduction vector to: | r | .. | r | r |
@@ -646,7 +646,8 @@ static LogicalResult cleanReducChain(PatternRewriter &rewriter, Operation *op,
646646
/// s = vsum(v) v = for { }
647647
/// u = broadcast(s) -> for (v) { }
648648
/// for (u) { }
649-
struct ReducChainBroadcastRewriter : public OpRewritePattern<vector::BroadcastOp> {
649+
struct ReducChainBroadcastRewriter
650+
: public OpRewritePattern<vector::BroadcastOp> {
650651
public:
651652
using OpRewritePattern<vector::BroadcastOp>::OpRewritePattern;
652653

0 commit comments

Comments
 (0)