Skip to content

Commit 766d84a

Browse files
remove {} that are not necessary in load/store anymore
Signed-off-by: Alexandre Eichenberger <[email protected]>
1 parent f89c8e7 commit 766d84a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Accelerators/NNPA/Transform/ZLow/ZLowStickExpansion.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class UnstickExpansionPattern : public OpRewritePattern<ZLowUnstickOp> {
261261
// Store f32 values back to the (normal layout) output.
262262
DimsExpr outputAF = SymListIE(inputAF);
263263
outputAF[E1] = outputAF[E1] + l;
264-
create.vec.storeIE(vecF32H, alloc, outputAF, {});
264+
create.vec.storeIE(vecF32H, alloc, outputAF);
265265
create.vec.storeIE(
266266
vecF32L, alloc, outputAF, {litArchVLHalf.getValue()});
267267
});
@@ -277,8 +277,8 @@ class UnstickExpansionPattern : public OpRewritePattern<ZLowUnstickOp> {
277277
Value vecF32L = convertOp.getResult(1);
278278
// Save into archVL value buffer.
279279
Value bufferF32 = create.mem.alignedAlloca(bufferType);
280-
create.vec.storeIE(vecF32H, bufferF32, {litZero}, {});
281-
create.vec.storeIE(vecF32L, bufferF32, {litArchVLHalf}, {});
280+
create.vec.storeIE(vecF32H, bufferF32, {litZero});
281+
create.vec.storeIE(vecF32L, bufferF32, {litArchVLHalf});
282282
// Save the remaining values as scalars.
283283
create.scf.forLoop(litZero.getValue(),
284284
remainingScalarValues.getValue(), 1,

src/Conversion/ONNXToKrnl/NN/Normalization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ struct ONNXInstanceNormalizationOpLowering
255255
for (int d = 0; d < rank - 2; ++d)
256256
inputAccessFct.emplace_back(spatial_loopInd[d]);
257257
// tmp += input[n,c, spatial dims]
258-
Value oldSum = create.krnl.load(tmpMemRef, {});
258+
Value oldSum = create.krnl.load(tmpMemRef);
259259
Value val = create.krnl.load(inputMemRef, inputAccessFct);
260260
val = create.math.sub(val, mean);
261261
val = create.math.mul(val, val);

src/Dialect/Mlir/DialectBuilder.hpp.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void simdReduceIE(const BUILDER &builder, IndexExpr lb, IndexExpr ub,
368368
auto vectorType = mlir::VectorType::get({VL}, elementType);
369369
vectorTypes.emplace_back(vectorType);
370370
mlir::Value initVec = create.vec.splat(vectorType, initVal);
371-
create.vec.storeIE(initVec, tmps[i], tmpAFs[i], {});
371+
create.vec.storeIE(initVec, tmps[i], tmpAFs[i]);
372372
}
373373
if (VL > 1) {
374374
// Logic: see simdIterateIE.
@@ -401,7 +401,7 @@ void simdReduceIE(const BUILDER &builder, IndexExpr lb, IndexExpr ub,
401401
}
402402
// Save tmp values in SIMD mode.
403403
for (uint64_t i = 0; i < inputSize; ++i) {
404-
create.vec.storeIE(resultVals[i], tmps[i], tmpAFs[i], {});
404+
create.vec.storeIE(resultVals[i], tmps[i], tmpAFs[i]);
405405
}
406406
};
407407

0 commit comments

Comments
 (0)