Skip to content

Commit fca1e46

Browse files
[X86] Remove a redundant cast (NFC) (#165509)
ShiftAmt is already of type int.
1 parent 22a10c8 commit fca1e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12213,7 +12213,7 @@ static int matchShuffleAsShift(MVT &ShiftVT, unsigned &Opcode,
1221312213
MVT ShiftSVT = MVT::getIntegerVT(ScalarSizeInBits * Scale);
1221412214
ShiftVT = ByteShift ? MVT::getVectorVT(MVT::i8, SizeInBits / 8)
1221512215
: MVT::getVectorVT(ShiftSVT, Size / Scale);
12216-
return (int)ShiftAmt;
12216+
return ShiftAmt;
1221712217
};
1221812218

1221912219
// SSE/AVX supports logical shifts up to 64-bit integers - so we can just

0 commit comments

Comments
 (0)