As for non-default optimizations, this passage from the following article best explains how much there is for you to explore:
Which LLVM passes to use, and which order to run them, with what analysis in between, is a huge search problem, though. There are roughly 200 optimization and analysis flags, and these, mostly, can be run in any order, any number of times. If we want to run say, twenty of the passes (about what -O3 does), that’s what, about 10^46 arrangements!
https://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-54.1/...
As for non-default optimizations, this passage from the following article best explains how much there is for you to explore:
Which LLVM passes to use, and which order to run them, with what analysis in between, is a huge search problem, though. There are roughly 200 optimization and analysis flags, and these, mostly, can be run in any order, any number of times. If we want to run say, twenty of the passes (about what -O3 does), that’s what, about 10^46 arrangements!
http://donsbot.wordpress.com/2010/03/01/evolving-faster-hask...