GRACE: Cluster-Specific Sequence Reuse for Compiler Auto-Tuning
Haolin PanChao ZhaJinyuan DongMingjie XingYWYanjun Wu
Haolin Pan
Chao Zha
Jinyuan Dong
Mingjie Xing
YWYanjun Wu
+5
GRACE is a compiler auto-tuning framework that uses cluster-specific sequence reuse to balance optimization quality and cost. It constructs a small reusable sequence coreset for each group of similar programs, combining global pass synergy analysis, optimization-response-guided program organization, and cluster-specific evolutionary search. At deployment, it evaluates the coreset on the target program with optional minimal refinement, yielding bounded overhead. On LLVM 10.0.0 and 18.1.6, GRACE reduces LLVM IR instruction count by 9.92% and 10.30% on average relative to `opt -Oz` for code-size optimization, with less than 1 second tuning time per program.

arXiv ·
· October 15, 2025