Skip to content

Commit b29a434

Browse files
ekochetkigcbot
authored andcommitted
Fix promotion of SLM pointer for opaque pointers
Now we can have CmpInst as the user of the SLM pointer. Previously there was always a bitcast in between.
1 parent 81b480d commit b29a434

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IGC/Compiler/CISACodeGen/GenIRLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ bool GenIRLowering::runOnFunction(Function &F) {
335335
} else if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
336336
CI->replaceUsesOfWith(V, NewBase);
337337
Changed = true;
338+
} else if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
339+
CI->replaceUsesOfWith(V, NewBase);
340+
Changed = true;
338341
}
339342
}
340343
}

0 commit comments

Comments
 (0)