[PATCH] D84432: [IPSCCP] Drop argmemonly after replacing pointer argument.

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 09:44:32 PDT 2020


jdoerfert added a comment.

This doesn't "work" for

  define internal void @ptrarg.5(i64 %arg, i32 %val) argmemonly inaccessiblemem_or_argmemonly nounwind {
    %p = inttoptr i64 %arg to i32* 
    store i32 %val, i32* %p
    ret void
  }

Unsure if that is a problem in the real world but I wanted to mention it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84432/new/

https://reviews.llvm.org/D84432





More information about the llvm-commits mailing list