[PATCH] D73244: [mlir] Fix vectorize transform crashing on none-op operand
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 17:14:14 PST 2020
rriddle accepted this revision.
rriddle added inline comments.
This revision is now accepted and ready to land.
================
Comment at: mlir/lib/Transforms/Vectorize.cpp:1009
+ return nullptr;
+ if (auto constant = dyn_cast<ConstantOp>(operandOp)) {
return vectorizeConstant(
----------------
You can just change the dyn_cast to dyn_cast_or_null instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73244/new/
https://reviews.llvm.org/D73244
More information about the llvm-commits
mailing list