Skip to content

Commit 054c1f4

Browse files
committed
remove unnecessary checks
1 parent cec5357 commit 054c1f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ bool VectorCombine::vectorizeLoadInsert(Instruction &I) {
279279
// element's size; otherwise, Offset and Scalar must be shuffled to the
280280
// appropriate element size for both.
281281
uint64_t ScalarSizeInBytes = ScalarSize / 8;
282-
if (auto UnalignedBytes = Offset.urem(ScalarSizeInBytes);
283-
UnalignedBytes != 0) {
282+
if (auto UnalignedBytes = Offset.urem(ScalarSizeInBytes)) {
284283
if (DL->isBigEndian())
285284
return false;
286285
uint64_t OldScalarSizeInBytes = ScalarSizeInBytes;

0 commit comments

Comments
 (0)