Skip to content

Commit bffd6d2

Browse files
Gang Y Chenigcbot
authored andcommitted
Increase byte/short merging size from 4 to 8 bytes
1 parent b2ea910 commit bffd6d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/Compiler/CISACodeGen/MemOpt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ namespace {
238238
else
239239
accessSize = int64_t(DL->getTypeSizeInBits(acessInst->getOperand(0)->getType())) / 8;
240240
mergedSize = cur_offset - firstOffset + accessSize;
241-
if (mergedSize > 4)
241+
// limit the size of merge when alignment < 4
242+
if (mergedSize > 8)
242243
AccessIntrs.pop_back();
243244
else
244245
break;

0 commit comments

Comments
 (0)