Reputation: 30843
List of available LLVM passes are desribed here. I am interested in knowing which passes are included for different optimization levels. For example, for -O2 which passes are included. Is there any site or document which provides that information.
Upvotes: 3
Views: 427
Reputation: 6625
from the command line you can use:
echo "" | opt -O3 -disable-output -debug-pass=Arguments
Upvotes: 1
Reputation: 12927
It's visible in PassManagerBuilder.cpp file. Take a look at populateModulePassManager method where OptLevel is integer that follows -O option.
Upvotes: 4