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.
This commit is contained in:
Kochetkov Eugene
2025-10-29 12:17:57 +00:00
committed by igcbot
parent 81b480d3d3
commit b29a434970

View File

@ -335,6 +335,9 @@ bool GenIRLowering::runOnFunction(Function &F) {
} else if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
CI->replaceUsesOfWith(V, NewBase);
Changed = true;
} else if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
CI->replaceUsesOfWith(V, NewBase);
Changed = true;
}
}
}