MetallicPriest
MetallicPriest

Reputation: 30843

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.

Upvotes: 3

Views: 427

Answers (2)

JohnTortugo
JohnTortugo

Reputation: 6625

from the command line you can use:

echo "" | opt -O3 -disable-output -debug-pass=Arguments

Upvotes: 1

Mārtiņš Možeiko
Mārtiņš Možeiko

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

Related Questions