Souper is a superoptimizer for LLVM IR designed to automatically discover missed optimization opportunities within LLVM’s mid-end optimizers. By leveraging SMT (Satisfiability Modulo Theories) solvers, Souper symbolically analyzes LLVM Intermediate Representation (IR) to synthesize equivalent, more efficient expressions. It identifies peephole optimizations—small instruction-level improvements—that LLVM’s optimizer may overlook, thereby improving compiled code quality. Souper can operate in multiple modes: as a standalone analysis tool that extracts and solves SMT queries from LLVM bitcode, or as an LLVM optimization pass that applies discovered optimizations directly to the IR. It integrates seamlessly with Clang and LLVM tools and supports caching mechanisms (RAM or Redis) to accelerate repeated analyses. The system can output suggested rewrites for developers or automatically apply transformations, helping compiler engineers improve optimization passes.

Features

  • Synthesizes optimized LLVM IR expressions using SMT solvers
  • Detects missed peephole and mid-level optimizations automatically
  • Functions as both a standalone optimizer and an LLVM opt pass
  • Integrates with Clang and LLVM toolchains for easy usage
  • Supports caching (RAM or Redis) to improve performance on large builds
  • Provides Valgrind-compatible testing and verification for reliability

Project Activity

See All Activity >

Categories

Productivity

License

Apache License V2.0

Follow Souper

Souper Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Souper!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

C, C++, Perl, Python

Related Categories

Python Productivity Software, Perl Productivity Software, C++ Productivity Software, C Productivity Software

Registered

2025-10-10