Skip to content

Commit 95c25a9

Browse files
vmustyaigcbot
authored andcommitted
Fix the VC GenXPacketizer pass to work with opaque pointers
The GenXPacketizer pass missed the uniform load result handling, when opaque pointers are used. This caused assertion failures during packetization and incorrect code generation.
1 parent 800f4fe commit 95c25a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ void GenXPacketize::findUniformInsts(Function &F) {
618618
const Value *Use = (*UI);
619619
if (auto *LI = dyn_cast<LoadInst>(Use)) {
620620
UniformInsts.insert(LI);
621+
UVSet.push((Value *)LI);
621622
} else if (auto *GEP = dyn_cast<GetElementPtrInst>(Use)) {
622623
if (GEP->getPointerOperand() == Def) {
623624
UniformInsts.insert(GEP);

0 commit comments

Comments
 (0)