Updates LLVM usage to match
[26750a1264b3](https://github.com/llvm/llvm-project/commit/26750a1264b3)

PiperOrigin-RevId: 339127601
This commit is contained in:
Benjamin Kramer 2020-10-26 15:10:29 -07:00 committed by TensorFlow MLIR Team
parent 6eda9ed273
commit b7aa01dbe0
3 changed files with 4 additions and 7 deletions

View File

@ -1,2 +1,2 @@
c89447b65984c97145f63be21e42cfa98da60dd2
26750a1264b3df114a1efae7cde6f0784206b2ce

View File

@ -541,10 +541,6 @@ struct HloLegalizeToLhlo
return std::all_of(op.operand_type_begin(), op.operand_type_end(),
isMemRefType);
});
target.addDynamicallyLegalOp<shape::AssumingOp>([&](shape::AssumingOp op) {
return std::all_of(op.result_type_begin(), op.result_type_end(),
isMemRefType);
});
auto kind = results_escape_function
? BufferizeTypeConverter::KeepAsFunctionResult
@ -557,7 +553,8 @@ struct HloLegalizeToLhlo
populateWithBufferizeOpConversionPatterns<mlir::ReturnOp, mlir::ReturnOp,
lmhlo::CopyOp>(
&context, converter, patterns);
populateShapeTypeConversionPatterns(&context, converter, patterns);
populateShapeStructuralTypeConversionsAndLegality(&context, converter,
patterns, target);
if (failed(applyPartialConversion(getOperation(), target, patterns)))
signalPassFailure();
}

View File

@ -121,7 +121,7 @@ class LhloFuseLinalgPass
for (unsigned id = 0, e = LinalgOp(op).getNumInputs(); id < e; ++id) {
linalg::Aliases aliases;
linalg::LinalgDependenceGraph graph(aliases, linalg_ops);
if (auto info = fuseProducerOf(b, op, id, graph, &folder)) {
if (auto info = fuseProducerOfBuffer(b, op, id, graph, &folder)) {
auto originalOp = info->originalProducer.getOperation();
erase_set.insert(originalOp);
auto originalOpInLinalgOpsVector = std::find_if(