[PATCH] D78447: [mlir][SCCP] Add support for propagating constants across inter-region control flow

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 20 11:54:05 PDT 2020


rriddle marked 3 inline comments as done.
rriddle added inline comments.


================
Comment at: mlir/test/Transforms/sccp-structured.mlir:132
+  return %result : i32
+}
----------------
rriddle wrote:
> bondhugula wrote:
> > bondhugula wrote:
> > > Every loop.if that you have in the test cases has an else. Add one or more without an else block?
> > Just realized that no values would be yielded without the else. And you are testing for empty regions at one place. 
> Do you have a suggestion on what you have in mind? An IfOp can only produce results if it has both a then and an else region. Given that IfOp is implicit capture, nothing would really be testing the structure of the IfOp that isn't tested elsewhere.
Seems we crossed comments. Should no longer be necessary if we restrict that successors are non-empty.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78447/new/

https://reviews.llvm.org/D78447





More information about the llvm-commits mailing list