Skip to content

Commit aed3118

Browse files
committed
Use llvm::map_to_vector
1 parent 2cfcf9b commit aed3118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ struct VectorInterleaveOpConvert final
607607
}
608608

609609
auto seq = llvm::seq<int64_t>(2 * n);
610-
auto indices = llvm::to_vector(
611-
llvm::map_range(seq, [n](int i) { return (i % 2 ? n : 0) + i / 2; }));
610+
auto indices = llvm::map_to_vector(
611+
seq, [n](int i) { return (i % 2 ? n : 0) + i / 2; });
612612

613613
// Emit a SPIR-V shuffle.
614614
rewriter.replaceOpWithNewOp<spirv::VectorShuffleOp>(

0 commit comments

Comments
 (0)