Hi, I'd like to disable all inlining in llvm-gcc/llvm-g++. From the FAQ on llvm.org, I see: "Passing "-Wa,-disable-opt -Wl,-disable-opt" will disable *all* cleanup and optimizations done at the llvm level, leaving you with the truly horrible code that you desire." But from a cursory glance at llvm-backend.cpp I don't immediately see that everything has been disabled by usage of this flag. It looks like one must pass either "-O0" or "-mllvm -disable-llvm-optzns" to turn off all inlining. I admit that I didn't look at this file as carefully as I could have. A related question: does llvm-gcc obey the gcc optimization flags? Specifically, does it obey -fno-inline? Thanks for your time and attention, Nathan McCauley
Hi Nathan,> I'd like to disable all inlining in llvm-gcc/llvm-g++. From the FAQ > on llvm.org, I see:do this the same way you would with gcc, aka -fno-inline. Ciao, Duncan.> > "Passing "-Wa,-disable-opt -Wl,-disable-opt" will disable *all* > cleanup and optimizations done at the llvm level, leaving you with the > truly horrible code that you desire." > > But from a cursory glance at llvm-backend.cpp I don't immediately see > that everything has been disabled by usage of this flag. It looks > like one must pass either "-O0" or "-mllvm -disable-llvm-optzns" to > turn off all inlining. I admit that I didn't look at this file as > carefully as I could have. > > A related question: does llvm-gcc obey the gcc optimization flags? > Specifically, does it obey -fno-inline? > > Thanks for your time and attention, > Nathan McCauley > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Apparently Analagous Threads
- [LLVMdev] function inlining of llvm-gcc versus gcc, and llvm-g++ versus g++?
- Is -disable-llvm-passes and -disable-llvm-optzns different?
- Is -disable-llvm-passes and -disable-llvm-optzns different?
- Is -disable-llvm-passes and -disable-llvm-optzns different?
- Is -disable-llvm-passes and -disable-llvm-optzns different?