File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1777,17 +1777,17 @@ bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
1777
1777
Worklist.push_back (GenerateInstLaneVectorFromOperand (Item, 0 ));
1778
1778
} else if (auto *II = dyn_cast<IntrinsicInst>(Item[0 ].first );
1779
1779
II && isTriviallyVectorizable (II->getIntrinsicID ())) {
1780
- for (unsigned O = 0 ; O < II->getNumOperands () - 1 ; O ++) {
1781
- if (isVectorIntrinsicWithScalarOpAtArg (II->getIntrinsicID (), O )) {
1780
+ for (unsigned Op = 0 , E = II->getNumOperands () - 1 ; Op < E; Op ++) {
1781
+ if (isVectorIntrinsicWithScalarOpAtArg (II->getIntrinsicID (), Op )) {
1782
1782
if (!all_of (drop_begin (Item), [&](InstLane &IL) {
1783
1783
return !IL.first ||
1784
- (cast<Instruction>(IL.first )->getOperand (O ) ==
1785
- cast<Instruction>(Item[0 ].first )->getOperand (O ));
1784
+ (cast<Instruction>(IL.first )->getOperand (Op ) ==
1785
+ cast<Instruction>(Item[0 ].first )->getOperand (Op ));
1786
1786
}))
1787
1787
return false ;
1788
1788
continue ;
1789
1789
}
1790
- Worklist.push_back (GenerateInstLaneVectorFromOperand (Item, O ));
1790
+ Worklist.push_back (GenerateInstLaneVectorFromOperand (Item, Op ));
1791
1791
}
1792
1792
} else {
1793
1793
return false ;
You can’t perform that action at this time.
0 commit comments