Skip to content

Commit 13410a0

Browse files
committed
pattern cleanup
1 parent 1f1c284 commit 13410a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,9 +1082,9 @@ class ExtractOpFromElementwise final
10821082

10831083
IRMapping mapping;
10841084
Location loc = eltwise->getLoc();
1085-
for (auto arg : eltwise->getOperands()) {
1086-
Value newArg =
1087-
rewriter.create<vector::ExtractOp>(loc, arg, op.getMixedPosition());
1085+
SmallVector<OpFoldResult> pos = op.getMixedPosition();
1086+
for (Value arg : eltwise->getOperands()) {
1087+
Value newArg = rewriter.create<vector::ExtractOp>(loc, arg, pos);
10881088
mapping.map(arg, newArg);
10891089
}
10901090

0 commit comments

Comments
 (0)