I have several LLVM bitcode files which I link with llvm-link to create one bitcode file. However, llvm-link does not perform Whole Program Optimization (WPO). How can I link bitcode such that the linker also performs WPO for producing the final bitcode file.
I have several LLVM bitcode files which I link with llvm-link to create one
Share
Optimizations will be performed when using llc to compile the bitcode file. Alternatively, use opt to invoke the optimizer directly.
Just using clang should also do-the-right-thing.