Skip to content

Commit 2a46d00

Browse files
vmustyaigcbot
authored andcommitted
Fix legacy-to-lsc translator in VC
SVM gather/scatter intrinsics may work with vectors of i16, and VC should handle such cases.
1 parent e17d678 commit 2a46d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXLegacyToLscTranslator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ GenXLegacyToLscTranslator::translateSVMGatherScatter(CallInst &CI) const {
466466
auto ElementSize = LSC_DATA_SIZE_INVALID;
467467
auto ElementsPerLane = 0;
468468

469-
if (ElementBytes == ByteBytes) {
469+
if (ElementBytes < DWordBytes) {
470470
ElementSize = getLSCElementSize(NumBlocks);
471471
ElementsPerLane = 1;
472472
} else {

0 commit comments

Comments
 (0)