Skip to content

Commit 87ef6d6

Browse files
igorban-inteligcbot
authored andcommitted
Fix region generation in packetize-pass
.
1 parent 83df14a commit 87ef6d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IGC/VectorCompiler/lib/GenXOpts/CMPacketize/GenXPacketize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*========================== begin_copyright_notice ============================
22
3-
Copyright (C) 2018-2024 Intel Corporation
3+
Copyright (C) 2018-2025 Intel Corporation
44
55
SPDX-License-Identifier: MIT
66
@@ -944,7 +944,7 @@ Value *GenXPacketize::packetizeLLVMInstruction(Instruction *Inst) {
944944
auto *ElemTy = Inst->getType();
945945
auto *VecDstTy = IGCLLVM::FixedVectorType::get(ElemTy, B->VWidth);
946946
// create an read-region
947-
vc::CMRegion R(VecDstTy);
947+
vc::CMRegion R(VecDstTy, DL);
948948
if (auto *CI = dyn_cast<ConstantInt>(Idx)) {
949949
R.Offset = CI->getSExtValue() * ElemTy->getPrimitiveSizeInBits() / 8;
950950
R.Indirect = nullptr;
@@ -977,7 +977,7 @@ Value *GenXPacketize::packetizeLLVMInstruction(Instruction *Inst) {
977977
cast<IGCLLVM::FixedVectorType>(OldVec->getType())->getNumElements();
978978
auto *ElemTy = Inst->getOperand(1)->getType();
979979
// create an write-region
980-
vc::CMRegion R(Vec->getType());
980+
vc::CMRegion R(Vec->getType(), DL);
981981
if (auto *CI = dyn_cast<ConstantInt>(Idx)) {
982982
// special case, this is really just like a bitcast
983983
if (CI->getZExtValue() == 0 && N == 1 && isa<UndefValue>(OldVec)) {

0 commit comments

Comments
 (0)