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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 25 10:58:30 PDT 2021


nikic added a comment.

In D99240#2651044 <https://reviews.llvm.org/D99240#2651044>, @aeubanks wrote:

> In D99240#2650972 <https://reviews.llvm.org/D99240#2650972>, @nikic wrote:
>
>> I would expect those internal aliases to be replaced by the aliasee in the first place -- is the problem that this happens too late?
>
> Which pass does this?
>
> The original snippet had a GEP of an alias which itself is another GEP into a global.

At least `-globalopt` does that. Not sure if any other passes do.


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