HomePhabricator

[mlir] Canonicalize IfOp with trivial `then` and `else` bodies to list of…

Authored by Hardcode84 on Mar 12 2021, 6:39 AM.

Description

[mlir] Canonicalize IfOp with trivial then and else bodies to list of SelectOp's

  • Do we need a threshold on maximum number of Yeild arguments processed (maximum number of SelectOp's to be generated)?
  • Had to modify some old IfOp tests to not get optimized by this pattern

Differential Revision: https://reviews.llvm.org/D98592