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

PiperOrigin-RevId: 342859791
This commit is contained in:
A. Unique TensorFlower 2020-11-17 07:36:57 -08:00 committed by TensorFlow MLIR Team
parent 0c7152e65c
commit 7a6a6ffa40
2 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
a8db144169279332db59d30051f249efa0201ab3 65f3e121fe4f80e2b178fa157ef1346043555b4b

View File

@ -167,10 +167,10 @@ class LhloFuseLinalgPass
// Fuse producers of tiled linalg ops. // Fuse producers of tiled linalg ops.
llvm::SmallDenseSet<Operation*> erase_set; llvm::SmallDenseSet<Operation*> erase_set;
SmallVector<Operation*, 8> linalg_ops; SmallVector<LinalgOp, 8> linalg_ops;
func.walk([&](LinalgOp op) { linalg_ops.push_back(op); }); func.walk([&](LinalgOp op) { linalg_ops.push_back(op); });
for (auto* op : llvm::reverse(linalg_ops)) { for (LinalgOp op : llvm::reverse(linalg_ops)) {
for (unsigned id = 0, e = LinalgOp(op).getNumInputs(); id < e; ++id) { for (unsigned id = 0, e = op.getNumInputs(); id < e; ++id) {
linalg::Aliases aliases; linalg::Aliases aliases;
linalg::LinalgDependenceGraph graph(aliases, linalg_ops); linalg::LinalgDependenceGraph graph(aliases, linalg_ops);
if (auto info = fuseProducerOfBuffer(b, op, id, graph)) { if (auto info = fuseProducerOfBuffer(b, op, id, graph)) {