Skip to content

Commit 6460b8a

Browse files
committed
BigEndian check update
1 parent f745b08 commit 6460b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ bool VectorCombine::vectorizeLoadInsert(Instruction &I) {
251251
// appropriate element size for both.
252252
uint64_t ScalarSizeInBytes = ScalarSize / 8;
253253
if (auto UnalignedBytes = Offset.urem(ScalarSizeInBytes);
254-
UnalignedBytes != 0) {
254+
UnalignedBytes != 0 && !DL->isBigEndian()) {
255255
uint64_t OldScalarSizeInBytes = ScalarSizeInBytes;
256256
// Assign the greatest common divisor between UnalignedBytes and Offset to
257257
// ScalarSizeInBytes

0 commit comments

Comments
 (0)