[llvm] [Attributor] Indicate optimistic fixed point if an instruction already has non-zero address space (PR #101589)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 19:54:12 PDT 2024


================
@@ -12491,6 +12491,9 @@ struct AAAddressSpaceImpl : public AAAddressSpace {
   void initialize(Attributor &A) override {
     assert(getAssociatedType()->isPtrOrPtrVectorTy() &&
            "Associated value is not a pointer");
+    auto *PtrTy = cast<PointerType>(getAssociatedType());
----------------
shiltian wrote:

well, it is needed as `getAddressSpace` is a method of `PointerType` instead of `Type`.

https://github.com/llvm/llvm-project/pull/101589


More information about the llvm-commits mailing list