[llvm-dev] Loss (?) of AA on function inlining
Emil Hammarström via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 31 04:01:23 PST 2018
I have written a pass that utilizes an alias analysis to check if an
instruction reads a memory location. Here's that check in source code:
This check seems to fail when not supplying `-fno-inline-functions` to
`MAKEOPT` in LNT. This results in what seems like a massive memory leak.
When passing the aforementioned flag all tests pass and we may measure
When only running `clang -O3` on small test cases I see that illegal
optimizations are applied without the use of `-fno-inline-functions` --
i.e. the previously mentioned check fails. The pass is statically linked to
the function simplification pass here:
Why is the alias analysis seemingly lost on function inlining?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev