Skip to content

Commit 8a86258

Browse files
committed
more tidy
1 parent 95a0c70 commit 8a86258

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5960,12 +5960,10 @@ void vector::TransposeOp::build(OpBuilder &builder, OperationState &result,
59605960
}
59615961

59625962
OpFoldResult vector::TransposeOp::fold(FoldAdaptor adaptor) {
5963-
59645963
// Eliminate splat constant transpose ops.
59655964
if (auto splat =
5966-
llvm::dyn_cast_if_present<SplatElementsAttr>(adaptor.getVector())) {
5965+
llvm::dyn_cast_if_present<SplatElementsAttr>(adaptor.getVector()))
59675966
return splat.reshape(getResultVectorType());
5968-
}
59695967

59705968
// Eliminate poison transpose ops.
59715969
if (llvm::dyn_cast_if_present<ub::PoisonAttr>(adaptor.getVector()))

0 commit comments

Comments
 (0)