Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

llvm optimizations

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.

like image 571
MetallicPriest Avatar asked Feb 28 '26 13:02

MetallicPriest


1 Answers

It's visible in PassManagerBuilder.cpp file. Take a look at populateModulePassManager method where OptLevel is integer that follows -O option.

like image 174
Mārtiņš Možeiko Avatar answered Mar 03 '26 03:03

Mārtiņš Možeiko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!