File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3733,16 +3733,8 @@ class BoUpSLP {
3733
3733
Last->ReorderIndices.append(ReorderIndices.begin(), ReorderIndices.end());
3734
3734
}
3735
3735
if (EntryState == TreeEntry::SplitVectorize) {
3736
- auto *MainOp =
3737
- cast<Instruction>(*find_if(Last->Scalars, IsaPred<Instruction>));
3738
- auto *AltOp = cast<Instruction>(*find_if(Last->Scalars, [=](Value *V) {
3739
- auto *I = dyn_cast<Instruction>(V);
3740
- if (!I)
3741
- return false;
3742
- InstructionsState LocalS = getSameOpcode({I, MainOp}, *TLI);
3743
- return !LocalS || LocalS.isAltShuffle();
3744
- }));
3745
- Last->setOperations(InstructionsState(MainOp, AltOp));
3736
+ assert(S && "Split nodes must have operations.");
3737
+ Last->setOperations(S);
3746
3738
SmallPtrSet<Value *, 4> Processed;
3747
3739
for (Value *V : VL) {
3748
3740
auto *I = dyn_cast<Instruction>(V);
You can’t perform that action at this time.
0 commit comments