analyzing-compiler-graphs

Dump and analyze Graal IR compiler graphs to reveal optimization decisions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/antonykamp/cc-truffle-performance-plugin --skill analyzing-compiler-graphs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-compiler-graphs
Source: https://github.com/antonykamp/cc-truffle-performance-plugin/tree/main/skills/analyzing-compiler-graphs
Command: npx skills add https://github.com/antonykamp/cc-truffle-performance-plugin --skill analyzing-compiler-graphs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill dumps and analyzes Graal IR compiler graphs to reveal which optimizations were applied and which were missed, helping developers understand optimization decisions at the IR level.

Core Features & Use Cases

  • Dump Graal IR graphs for inspection with BGV and Seafoam workflows.
  • Analyze inlining decisions, escape analysis, and boxing removals to guide performance fixes.
  • Identify optimization barriers and deoptimizations to drive targeted improvements in Truffle language implementations.

Quick Start

Run the analyze-compiler-graphs skill to dump Graal compiler graphs and inspect optimization decisions.

Frequently Asked Questions about analyzing-compiler-graphs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect Graal compiler graphs to analyze inlining decisions?

To analyze Graal compiler graphs, you dump Graal IR and use Seafoam or bgv2json workflows. This reveals optimization decisions like inlining and escape analysis to guide performance fixes in Truffle language implementations.

What is the best way to reveal missed Graal IR optimizations during Truffle language profiling?

Revealing missed Graal IR optimizations involves dumping and analyzing BGV files to inspect deoptimizations and boxing behavior. This exposes optimization barriers at the IR level to drive targeted improvements.

Do I need Graal debug options enabled to dump compiler graphs for escape analysis?

Yes, you need access to Graal debug options to dump compiler graphs for escape analysis. Optionally applying method filtering allows for focused dumps when inspecting optimization decisions across Graal languages.

Can I use BGV dumps with Seafoam workflows to inspect boxing removals?

Yes, you can use BGV dumps with Seafoam workflows to inspect boxing removals. This combination helps performance engineers understand which optimizations were applied or missed during Truffle/Graal compilations.

How to identify optimization barriers in Truffle language implementations using BGV dumps?

Identifying optimization barriers in Truffle implementations using BGV dumps requires analyzing Graal IR compiler graphs. Applying method filtering focuses the dumps to reveal specific deoptimizations and escape analysis failures.