Skip to content

Commit 84fe361

Browse files
mbelickipszymich
authored andcommitted
Fix JointMatrix large slice bug preventing Mx1 slices to be loaded.
This patch fixes non exhaustive condition used to resolve JointMatrix slice load. (cherry picked from commit 0fcccb6)
1 parent d0d74cb commit 84fe361

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/JointMatrixFuncsResolutionPass.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@ static uint64_t constIntValue(const Value *v) {
705705
template <class BuilderT>
706706
static Instruction *loadSlice(BuilderT *builder, Type *matTy, Value *sliceArray) {
707707
IGCLLVM::FixedVectorType *sliceTy = dyn_cast<IGCLLVM::FixedVectorType>(matTy);
708-
if (sliceTy && sliceTy->getNumElements() <= 32) {
708+
if ((sliceTy && sliceTy->getNumElements() <= 32)
709+
|| matTy->isIntegerTy() || matTy->isFloatingPointTy()) {
709710
return builder->CreateLoad(matTy, sliceArray);
710711
} else if (matTy->isArrayTy() && matTy->getArrayNumElements() == 2) {
711712
Type *baseType = Type::getInt64Ty(builder->getContext());

0 commit comments

Comments
 (0)