Skip to content

Commit fec8eb8

Browse files
KorovinVladigcbot
authored andcommitted
Prevent baling indirect regions for LSC
.
1 parent bdabd61 commit fec8eb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXBaling.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,14 @@ bool GenXBaling::operandCanBeBaled(
545545
for (auto U : Opnd->users())
546546
if (isa<BitCastInst>(U))
547547
return false;
548-
Region R = makeRegionFromBaleInfo(cast<CallInst>(Opnd), BaleInfo());
549-
if (R.Indirect)
548+
if (RdR.Indirect)
550549
return false;
551550
}
551+
// Indirect regions are not supported for LSC.
552+
if (RdR.Indirect &&
553+
(GenXIntrinsic::isLSC(Inst) ||
554+
vc::InternalIntrinsic::isInternalMemoryIntrinsic(Inst)))
555+
return false;
552556
return true;
553557
}
554558
return false;

0 commit comments

Comments
 (0)