termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Optimize the program at level 2 and output the result to another 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 -O2 {{path/to/file.bc}} -S -o {{path/to/output_file.bc}}
click the source code to copy
install
opt
on any operating system with
command-not-found.com