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 {
2312
2312
assert((empty() || VL.size() == getNumLanes()) &&
2313
2313
"Expected same number of lanes");
2314
2314
assert(isa<Instruction>(VL[0]) && "Expected instruction");
2315
- unsigned NumOperands = cast<Instruction>(VL[0])->getNumOperands();
2316
2315
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();
2319
2319
OpsVec.resize(NumOperands);
2320
2320
unsigned NumLanes = VL.size();
2321
2321
for (unsigned OpIdx = 0; OpIdx != NumOperands; ++OpIdx) {
You can’t perform that action at this time.
0 commit comments