Hot cold splitting is an effective way for code optimization in LLVM. This built-in LLVM pass is located at :
/llvm/lib/Transforms/IPO/HotColdSplitting.cpp
Actually, I want to use this pass to optimize my code but I didn't find any documentation on how to use this built-in pass to optimize my code .
I already know that I should use LLVM opt command to load the pass but I didn't find the proper way to apply this optimization pass on my program .
I have two questions so far :
1) How to use opt properly to load this pass to optimize my code 2) Can I use this pass directly on clang to optimize C/C++ code as switches like -fsanitize=address which applies to the underlying compiling program ?
Thanks.