Skip to content

Commit 16f5116

Browse files
removing unnecessary changes
Signed-off-by: Muzammiluddin Syed <[email protected]>
1 parent fc0d7fb commit 16f5116

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,6 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
12901290
LogicalResult
12911291
matchAndRewrite(WMMAOp op, WMMAOpAdaptor adaptor,
12921292
ConversionPatternRewriter &rewriter) const override {
1293-
12941293
Location loc = op.getLoc();
12951294
auto outType =
12961295
typeConverter->convertType<VectorType>(op.getDestD().getType());
@@ -1329,6 +1328,7 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
13291328
rewriter, loc, destCType.clone(rewriter.getI16Type()), destC);
13301329

13311330
std::optional<StringRef> maybeIntrinsic = wmmaOpToIntrinsic(op, chipset);
1331+
13321332
if (!maybeIntrinsic.has_value())
13331333
return op.emitOpError("no intrinsic matching WMMA on the given chipset");
13341334

@@ -1350,6 +1350,7 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
13501350
loweredOp.addOperands(operands);
13511351
loweredOp.addAttributes(attrs);
13521352
Operation *lowered = rewriter.create(loweredOp);
1353+
13531354
Operation *maybeCastBack = lowered;
13541355
if (rawOutType != outType)
13551356
maybeCastBack = LLVM::BitcastOp::create(rewriter, loc, outType,

mlir/test/Target/LLVMIR/rocdl.mlir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ llvm.func @rocdl.wmma(%arg0 : vector<8xf32>, %arg1 : vector<16 x f16>, %arg2 : v
877877
%arg14 : vector<64xi32>, %arg15 : vector<64xf16>, %arg16 : vector<16xbf16>, %arg17 : vector<32xbf16>) -> vector<8xf32> {
878878

879879
// ---- Wave32 -----
880-
881880
// f16 -> f32
882881
// CHECK: call <8 x float> @llvm.amdgcn.wmma.f32.16x16x16.f16.v8f32.v16f16(<16 x half> %{{.*}} <16 x half> %{{.*}} <8 x float> %{{.*}})
883882
%r0 = rocdl.wmma.f32.16x16x16.f16 %arg1, %arg1, %arg0 : (vector<16xf16>, vector<16xf16>, vector<8xf32>) -> vector<8xf32>

0 commit comments

Comments
 (0)