Skip to content

Commit 3de48b7

Browse files
committed
BigEndian check update
1 parent 33a7de8 commit 3de48b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ bool VectorCombine::vectorizeLoadInsert(Instruction &I) {
252252
uint64_t ScalarSizeInBytes = ScalarSize / 8;
253253
if (auto UnalignedBytes = Offset.urem(ScalarSizeInBytes);
254254
UnalignedBytes != 0) {
255+
if (DL->isBigEndian())
256+
return false;
255257
uint64_t OldScalarSizeInBytes = ScalarSizeInBytes;
256258
// Assign the greatest common divisor between UnalignedBytes and Offset to
257259
// ScalarSizeInBytes

0 commit comments

Comments
 (0)