Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

LLVM Optimizer - Run Optimizations | Online Free DevTools by Hexmos

Run LLVM optimizations with LLVM Optimizer. Analyze, transform, and optimize LLVM bitcode files using command line. Free online tool, no registration required.

opt

Run optimizations and analyse LLVM source files. More information: https://llvm.org/docs/CommandGuide/opt.html.

  • Run an optimization or analysis on a bitcode file:

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

  • Output the Control Flow Graph of a function to a .dot file:

opt {{-dot-cfg}} -S {{path/to/file.bc}} -disable-output

  • Optimize the program at level 2 and output the result to another file:

opt -O2 {{path/to/file.bc}} -S -o {{path/to/output_file.bc}}