How to extract link time optimization pass sequence of O3/O2 pipelines?

Hi I was experimenting with pass ordering problem and I have the compile time pass sequence which I extracted through -print-pipeline-passes option, I was wondering if there is a similar option which I could use to extract link time pipeline as well, I would appreciate any help.

opt -passes='thinlto<O3>' -print-pipeline-passes or opt -passes='lto<O3>' -print-pipeline-passes will get you the link-time LTO pipelines. The corresponding pre-link pipelines are thinlto-pre-link<O3> and lto-pre-link<O3>.

1 Like

great! let me give it a try! thanks a ton.

edit : thanks it worked!!