[PATCH] D78397: [mlir][Transforms] Add pass to perform sparse conditional constant propagation
Uday Bondhugula via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 20 11:21:32 PDT 2020
bondhugula accepted this revision.
bondhugula marked an inline comment as done.
bondhugula added inline comments.
This revision is now accepted and ready to land.
================
Comment at: mlir/lib/Transforms/SCCP.cpp:156
+
+ /// Mark the edge between 'from' and 'to' as executable.
+ void markEdgeExecutable(Block *from, Block *to);
----------------
rriddle wrote:
> bondhugula wrote:
> > Nit: do either backticks and regular single quotes work for parameters in doc comments?
> I'm not sure as we don't generate doxygen ATM for me to look at. The codebase is fairly inconsistent to either, but changed all within this file to consistently use ''. We should figure that out though, and standardize to using one.
The doxygen is actually generated - it's here. https://mlir.llvm.org/doxygen/
================
Comment at: mlir/lib/Transforms/SCCP.cpp:308
+
+ value.replaceAllUsesWith(constant);
+ return success();
----------------
If the value is an op result, do you want to / can you erase this op? You already have a pre inc iterator at its call site.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78397/new/
https://reviews.llvm.org/D78397
More information about the llvm-commits
mailing list