Skip to content

Commit c141d15

Browse files
committed
[VectorCombine] Remove redundant checks (NFC).
The removed conditions are already checked by the if above. Fixes #53761.
1 parent 4ec00fb commit c141d15

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,12 +1019,8 @@ bool VectorCombine::scalarizeLoadExtract(Instruction &I) {
10191019
return false;
10201020
NumInstChecked++;
10211021
}
1022-
}
1023-
1024-
if (!LastCheckedInst)
1025-
LastCheckedInst = UI;
1026-
else if (LastCheckedInst->comesBefore(UI))
10271022
LastCheckedInst = UI;
1023+
}
10281024

10291025
auto ScalarIdx = canScalarizeAccess(FixedVT, UI->getOperand(1), &I, AC, DT);
10301026
if (!ScalarIdx.isSafe()) {

0 commit comments

Comments
 (0)