@@ -109,8 +109,9 @@ static bool isOpOperandCanBeDroppedAfterFusedLinalgs(
109109// / * There is a chance that the implementation of the transformation does not
110110// / agree with the result of this method. This function gives a prediction based
111111// / on an optimized fusion.
112- llvm::SmallDenseSet<int > mlir::linalg::getPreservedProducerResults (
113- LinalgOp producer, LinalgOp consumer, OpOperand *fusedOperand) {
112+ llvm::SmallDenseSet<int >
113+ mlir::linalg::getPreservedProducerResults (LinalgOp producer, LinalgOp consumer,
114+ OpOperand *fusedOperand) {
114115 llvm::SmallDenseSet<int > preservedProducerResults;
115116 llvm::SmallVector<OpOperand *> opOperandsToIgnore;
116117
@@ -416,14 +417,9 @@ mlir::linalg::fuseElementwiseOps(RewriterBase &rewriter,
416417 }
417418
418419 // Generate the fused op.
419- // auto fusedOp = cloneWithoutRegions(rewriter, consumer,
420- // fusedResultTypes, fusedInputOperands);
421- // fusedOp.setIndexingMapsAttr(idxMap);
422- // fusedOp.setIteratorTypesAttr(itTp);
423420 auto fusedOp = rewriter.create <GenericOp>(
424421 consumer.getLoc (), fusedResultTypes, fusedInputOperands,
425- fusedOutputOperands, fusedIndexMaps,
426- consumer.getIteratorTypesArray ());
422+ fusedOutputOperands, fusedIndexMaps, consumer.getIteratorTypesArray ());
427423 if (!fusedOp.getShapesToLoopsMap ()) {
428424 // Fused op has invalid indexing maps. Typically this means something is off
429425 // in the input, but going ahead here would result in verification errors.
0 commit comments