Displaying 1 result from an estimated 1 matches for "ab7bd560".
2019 Jul 22
2
GlobalVariable I inserted gets removed by LTO
Hello llvm-dev@
I have a pass that puts a global constant data array into the module. And
another pass that gets runned by lld during LTO stage.
When I look at bytecode files corresponding to source TUs produced by
`clang -flto`, I can see GVs inserted by my pass #1. However, when pass #2
gets to run, these GV's are gone.
I figured out that passing -mllvm -compute-dead=0 to the linker fixes