[PATCH] D74293: Add a static method Block::sortTopologically(range) to enforce proper dominance

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 8 23:10:16 PST 2020


mehdi_amini created this revision.
mehdi_amini added a reviewer: rriddle.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, mgorny.
Herald added 1 blocking reviewer(s): rriddle.
Herald added a project: LLVM.

This method takes two operations from the same block to form a range that
will be topologically sorted. This is useful when fusing / reorganizing
operation in a block and later needing to readjust the ordering to
respect dominance.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74293

Files:
  mlir/include/mlir/IR/Block.h
  mlir/lib/IR/Block.cpp
  mlir/test/IR/block-topological-sort.mlir
  mlir/test/lib/IR/CMakeLists.txt
  mlir/test/lib/IR/TestBlock.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74293.243430.patch
Type: text/x-patch
Size: 8063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200209/65392dc0/attachment.bin>


More information about the llvm-commits mailing list