[llvm] [InstCombine][AMDGPU] Disable PtrReplacer when select has mismatch AS. (PR #98456)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 11:16:28 PDT 2024
================
@@ -329,6 +374,15 @@ bool PointerReplacer::collectUsersRecursive(Instruction &I) {
ValuesToRevisit.insert(Inst);
continue;
}
+
+ auto *TruePtr = dyn_cast<PointerType>(SI->getTrueValue()->getType());
+ auto *FalsePtr = dyn_cast<PointerType>(SI->getFalseValue()->getType());
----------------
jofrn wrote:
I see... will need to rework it some to detect it properly. Thanks.
https://github.com/llvm/llvm-project/pull/98456
More information about the llvm-commits
mailing list