Show hidden options
opt -help-hidden
$ opt -S -O3 file.ll
$ opt -S -O3 file.ll | llc -O3
or
$ opt -S -O3 file.ll | llc -O3 --x86-asm-syntax=intel
(Note llc accepts ll-files as well but produces a different output, even with -O3 provided.)
$ opt -S -O3 -debug-pass=Arguments file.ll
$ opt -S -passes='print<memoryssa>' -disable-output file.ll