[llvm-dev] Accessing global variables arrays result in inlined getelementptrs
Antonin Reitz via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 24 15:01:48 PDT 2019
On 7/23/19 3:38 PM, Michael Kruse wrote:
> The getelementptr has all constant argument, meaning it itself becomes
> an GetElementPtrConstantExpr. ConstantExprs (in contrast to
> instructions) are inlined by the IR emitter.
>> - Is there a way to disable it (ideally while preserving optimisations
>> disabled)?
Is it something that would be relatively easy to change with a local
patch for LLVM without introducing a lot of modifications? (only
disabling GetElementPtrConstantExprs inlining)
This is really something that would help having simpler static analysis,
even if additional analysis of the code can be used as a (quite ugly)
workaround.
Thank you very much,
Antonin
More information about the llvm-dev
mailing list