Skip to content

Commit a4ea5d9

Browse files
committed
remove tmp var
1 parent c4f9d1e commit a4ea5d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/SCF/Transforms/SCFVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ LogicalResult mlir::scf::vectorizeLoop(scf::ParallelOp loop,
287287
Value newIndexVar = newLoop.getInductionVars()[dim];
288288

289289
auto toVectorType = [&](Type elemType) -> VectorType {
290-
auto f = static_cast<int64_t>(factor);
291-
return VectorType::get(f, elemType);
290+
return VectorType::get(factor, elemType);
292291
};
293292

294293
IRMapping mapping;

0 commit comments

Comments
 (0)