[PATCH] D74211: [mlir] use unpacked memref descriptors at function boundaries
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 14:16:23 PST 2020
rriddle accepted this revision.
rriddle added inline comments.
This revision is now accepted and ready to land.
================
Comment at: mlir/lib/Transforms/DialectConversion.cpp:404
rewriter, origArg.getType(), replArgs, loc);
- assert(cast->getNumResults() == 1 &&
- cast->getNumOperands() == replArgs.size());
+ assert(cast->getNumResults() == 1);
mapping.map(origArg, cast->getResult(0));
----------------
ftynse wrote:
> rriddle wrote:
> > This is relaxed because you are inserting multiple operations to perform the conversion?
> Exactly.
We erase use_empty cast operations during applyRewrites. How does this interact with generating multiple operations when casting? (This doesn't have to block this revision, but just curious on your thoughts there)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74211/new/
https://reviews.llvm.org/D74211
More information about the llvm-commits
mailing list