File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2312,10 +2312,10 @@ class BoUpSLP {
23122312 assert((empty() || VL.size() == getNumLanes()) &&
23132313 "Expected same number of lanes");
23142314 assert(isa<Instruction>(VL[0]) && "Expected instruction");
2315- unsigned NumOperands = cast<Instruction>(VL[0])->getNumOperands();
23162315 constexpr unsigned IntrinsicNumOperands = 2;
2317- if (isa<IntrinsicInst>(VL[0]))
2318- NumOperands = IntrinsicNumOperands;
2316+ unsigned NumOperands = isa<IntrinsicInst>(VL[0])
2317+ ? IntrinsicNumOperands
2318+ : cast<Instruction>(VL[0])->getNumOperands();
23192319 OpsVec.resize(NumOperands);
23202320 unsigned NumLanes = VL.size();
23212321 for (unsigned OpIdx = 0; OpIdx != NumOperands; ++OpIdx) {
You can’t perform that action at this time.
0 commit comments