[PATCH] D99240: [ConstantFolding] Look through local aliases when simplify GEPs

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 14:56:36 PDT 2021


pcc added a comment.

In D99240#2684236 <https://reviews.llvm.org/D99240#2684236>, @rnk wrote:

> I think Arthur is right, it should be safe to look through local aliases to local linkage globals. I think we can actually do this in the "for alias analysis" variant of strip pointer casts, and we should consider that.

Again, safe doesn't mean it's a good idea.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99240



More information about the llvm-commits mailing list