From b29a434970c0132d80240fb23a653f632477debf Mon Sep 17 00:00:00 2001 From: Kochetkov Eugene Date: Wed, 29 Oct 2025 12:17:57 +0000 Subject: [PATCH] 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. --- IGC/Compiler/CISACodeGen/GenIRLowering.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IGC/Compiler/CISACodeGen/GenIRLowering.cpp b/IGC/Compiler/CISACodeGen/GenIRLowering.cpp index 83b82f26c..9d17ec8b7 100644 --- a/IGC/Compiler/CISACodeGen/GenIRLowering.cpp +++ b/IGC/Compiler/CISACodeGen/GenIRLowering.cpp @@ -335,6 +335,9 @@ bool GenIRLowering::runOnFunction(Function &F) { } else if (CallInst *CI = dyn_cast(Inst)) { CI->replaceUsesOfWith(V, NewBase); Changed = true; + } else if (CmpInst *CI = dyn_cast(Inst)) { + CI->replaceUsesOfWith(V, NewBase); + Changed = true; } } }