We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f745b08 commit 6460b8aCopy full SHA for 6460b8a
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -251,7 +251,7 @@ bool VectorCombine::vectorizeLoadInsert(Instruction &I) {
251
// appropriate element size for both.
252
uint64_t ScalarSizeInBytes = ScalarSize / 8;
253
if (auto UnalignedBytes = Offset.urem(ScalarSizeInBytes);
254
- UnalignedBytes != 0) {
+ UnalignedBytes != 0 && !DL->isBigEndian()) {
255
uint64_t OldScalarSizeInBytes = ScalarSizeInBytes;
256
// Assign the greatest common divisor between UnalignedBytes and Offset to
257
// ScalarSizeInBytes
0 commit comments