CC 2023
Sat 25 - Sun 26 February 2023 Montréal, Canada
Sat 25 Feb 2023 17:00 - 17:20 at St. Laurent 3 - Code Size & Bugs Chair(s): Fernando Magno Quintão Pereira

Binary code size is a first-class design consideration in many computing domains and a critical factor in many more, but compiler optimizations targeting code size are few and often limited in functionality. When size reduction opportunities are left unexploited, it results in higher downstream costs such as memory, storage, bandwidth, or programmer time.

We present HyBF, a framework to manage code merging techniques that target conditional branches (i.e., if-then-else) with similar code regions on both paths. While such code can be easily and profitably merged and with little control flow overhead, existing techniques generally fail to fully handle it. Our work is inspired by branch fusion, a technique for merging similar code in if-then-else statements, which is aimed at reducing thread divergence in GPUs. We introduce two new branch fusion techniques that can be applied on almost any if-then-else statement and can uncover many more code merging opportunities. The two approaches are mostly orthogonal and have different limitations and strengths. We integrate them into a single framework, HyBF, which can choose the optimal approach on per branch basis to maximize the potential of reducing code size.

Our results show that we can achieve significant code savings on top of already highly optimized binaries, including state-of-the-art code size optimizations. Over 61 benchmarks, we reduce code size on 43 of them. That reduction typically ranges from a few hundred to a few thousand bytes, but for specific benchmarks it can be substantial and as high as 4.2% or 67 KB.

Sat 25 Feb

Displayed time zone: Eastern Time (US & Canada) change

16:40 - 17:40
Code Size & BugsResearch Papers at St. Laurent 3
Chair(s): Fernando Magno Quintão Pereira Federal University of Minas Gerais
16:40
20m
Talk
Automatically Localizing Dynamic Code Generation Bugs in JIT Compiler Back-End
Research Papers
HeuiChan Lim University of Arizona, Saumya Debray University of Arizona
DOI
17:00
20m
Talk
HyBF: A Hybrid Branch Fusion Strategy for Code Size Reduction
Research Papers
Rodrigo C. O. Rocha University of Edinburgh, Charitha Saumya Purdue University, Kirshanthan Sundararajah Purdue University, Pavlos Petoumenos University of Manchester, Milind Kulkarni Purdue University, Michael F. P. O'Boyle University of Edinburgh
DOI
17:20
20m
Talk
Linker Code Size Optimization for Native Mobile Applications
Research Papers
Gai Liu ByteDance, Umar Farooq ByteDance, Chengyan Zhao ByteDance, Xia Liu ByteDance, Nian Sun ByteDance
DOI