================ @@ -434,6 +434,15 @@ struct AAAMDAttributesFunction : public AAAMDAttributes { indicatePessimisticFixpoint(); return; } + + for (Instruction &I : instructions(F)) { + if (isa<AddrSpaceCastInst>(I) && ---------------- arsenm wrote:
5->3 is an illegal address space cast, but the round trip cast can fold away. You don't want the cast back to the original address space. https://github.com/llvm/llvm-project/pull/94647 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits