[PATCH] D80100: [mlir][Vector] Add option to fully unroll for VectorTransfer to SCF lowering
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 27 14:10:14 PDT 2020
rriddle added inline comments.
================
Comment at: mlir/lib/Dialect/Vector/VectorOps.cpp:478
+ llvm::to_vector<4>(llvm::map_range(position, [](Value pos) {
+ return pos.getDefiningOp<ConstantIndexOp>().getValue();
+ }));
----------------
getDefiningOp can return null, which would make this crash instead of assert.
================
Comment at: mlir/lib/Dialect/Vector/VectorOps.cpp:757
+ llvm::to_vector<4>(llvm::map_range(position, [](Value pos) {
+ return pos.getDefiningOp<ConstantIndexOp>().getValue();
+ }));
----------------
Same here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80100/new/
https://reviews.llvm.org/D80100
More information about the llvm-commits
mailing list