Skip to content

Commit 268ea1a

Browse files
[Analysis] Remove a redundant cast (NFC) (#168184)
NumElts is alreadyof type int. Identified with readability-redundant-casting.
1 parent 3a7876d commit 268ea1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/VectorUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ bool llvm::isMaskedSlidePair(ArrayRef<int> Mask, int NumElts,
494494
for (auto [i, M] : enumerate(Mask)) {
495495
if (M < 0)
496496
continue;
497-
int Src = M >= (int)NumElts;
497+
int Src = M >= NumElts;
498498
int Diff = (int)i - (M % NumElts);
499499
bool Match = false;
500500
for (int j = 0; j < 2; j++) {

0 commit comments

Comments
 (0)