Run an optimization or analysis on a bitcode file

opt

  • A tool that takes LLVM source files and runs specified optimizations and/or analysis on them.
    More information: <https://llvm.org/docs/CommandGuide/opt.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

opt -{{passname}} {{path/to/file.bc}} -S -o {{file_opt.bc}}

click the source code to copy install opt on any operating system with command-not-found.com