[PATCH] D125449: [ConstantFold] Fold bitcasts on scalable vector splats.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 11:33:32 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/IR/ConstantFold.cpp:402
+ // Handle scalable vector splats separately, because we know the
+ // bitcast can always be pushed to the splatted source element.
+ if (auto *SrcSVTy = dyn_cast<ScalableVectorType>(V->getType()))
----------------
Is it always a bitcast or any cast?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125449/new/
https://reviews.llvm.org/D125449
More information about the llvm-commits
mailing list