[llvm] [SLP][NFCI] Address issues seen in downstream Coverity scan. (PR #93757)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 18:22:32 PDT 2024
================
@@ -11700,8 +11700,7 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
R.eraseInstruction(EI);
}
if (NumParts == 1 || UniqueBases.size() == 1) {
- VecBase = castToScalarTyElem(VecBase);
- return VecBase;
+ return VecBase ? castToScalarTyElem(VecBase) : nullptr;
----------------
justinfargnoli wrote:
When not do this check in `castToScalarTyElem()`?
https://github.com/llvm/llvm-project/pull/93757
More information about the llvm-commits
mailing list