We are trying to implement a jit compiler whose performance is supposed to be same as doing it with clang -o4. Is there a place where I could easily get the list of optimization passes invoked by clang with -o4 is specified?
相关问题
- CMakeList file to generate LLVM bitcode file from
- AddressSanitizer blacklist in c++ not working
-
Apple Clang and numeric_limits
::max() is - Why clang missing default argument on parameter pa
- LLVM OPT not giving optimised file as output.
相关文章
- How do I generate an AST from a string of C++ usin
- clang error: non-type template argument refers to
- Swift and Objective-c framework exposes its intern
- Compiling a .C file: Undefined symbols for archite
- (Optimization?) Bug regarding GCC std::thread
- What does Clang's 'type_visibility' at
- How to clone or create an AST Stmt node of clang?
- Unable to use f2py to link large PETSc/SLEPc Fortr
As far as I know -O4 means same thing as -O3 + enabled LTO (Link Time Optimization). See the folloing code fragments:
// Manually translate -O to -O2 and -O4 to -O3;
// Check for -O4.
Also see here:
For optimizations used with -O3 flag see this PassManagerBuilder.cpp file (look for OptLevel variable - it will have value 3).
Note that as of LLVM version 5.1 -O4 no longer implies link time optimization. If you want that you need to pass -flto. See Xcode 5 Release Notes.