Skip to content
Preprint

Accelerating C/C++ Pointer Analysis via Compiler-Based Offline Simplifications

Aug 2026 · 0 citations · 94 references
Computer Science

TL;DR

This paper explores a new perspective: applying semantic-preserving compiler optimizations directly to intermediate representation (IR) before pointer analysis, which is modular, analysis-agnostic, and easily integrates with existing tools.

Abstract

Pointer analysis is a cornerstone of numerous static analysis applications, including compiler optimizations, slicing, bug detection, and verification. While offline simplification is a common approach to boosting performance, existing methods are often tightly coupled to specific analysis algorithms and limited to a set of simplification rules. This paper explores a new perspective: applying semantic-preserving compiler optimizations directly to intermediate representation (IR) before pointer analysis. This strategy is modular, analysis-agnostic, and easily integrates with existing tools. We conduct an empirical study using diverse programs and three pointer analyses. The results show substantial performance gains---up to 3.14x speedup and 1.94x memory reduction---while precision remains largely unchanged. We also analyze the trade-offs between optimization overhead and analysis speedup, quantify changes in IR structure, assess the characteristics of optimization configurations, and identify promising directions for future research.

View source

Similar papers

Preprint Aug 2026

IncSFS: Incremental Full-Sparse Flow-Sensitive Pointer Analysis for C/C++

This work introduces IncSFS, the first incremental full-sparse flow-sensitive pointer analysis algorithm for C/C++ programs that propagates increases and decreases in points-to sets in an interleaved manner, supporting code deletion and insertion within a single analysis pass.

Kunlin Liu, Zhen-Bang Chen, Piyi Zu et al. · 0 citations
Preprint Aug 2026

Effect of Abstractions and Prompting Strategies on LLM-Guided High-Performance Optimizations

It is demonstrated that LLMs provided with specific optimization goals achieve better measured performance and validity rates when generating C code compared to creating computation pipelines and optimization schedules with established frameworks, suggesting that future development should explore alternative approaches...

Jiří Klepl, Matyáš Brabec, Martin Kruliš · 0 citations
Open access Aug 2026

The Unseen Delta: Characterizing the Compiler Optimization Landscape via Top-Down Differential Analysis

A top-down differential analysis methodology that calibrates compiler optimization differences with fine-grained, hierarchical microarchitectural metrics, offering a comprehensive view of runtime behavior and a binary patching framework that fixes identified performance issues by transplanting superior code sequences f...

Zhibo Liu, Huai-Jin Wang, Shuai Wang · 0 citations

Leveraging Copy-and-Patch JIT Compilation for Low-Overhead Dynamic Program Analysis

This paper explores copy-and-patch as a foundation for dynamic program analysis, and implements four analyses on top of an existing copy-and-patch JIT for R: code instrumentation, code coverage, performance profiling, and native debugging.

Martin Kocourek, Filip Křikava, Jan Vitek · 0 citations
Conference 2026

Scaling Bottom-Up IFDS Taint Analysis with Optimized Data-Flow Encoding

MonoIFDS is presented, a variant of the IFDS algorithm that combines IFDS-style procedure summaries with bottom-up inter-procedural propagation and uses a modified encoding of the data-flow state and propagation to improve the efficiency of handling large analysis states, and to enable optimizations, such as optimizing...

Fabian Schiebel, Eric Bodden · 0 citations
Open access Jul 2026

Context-Aware Inlining: Using Call-Stack Profiles for Fast and Smaller Binaries

This article presents a novel technique for reducing the size of AOT compiled programs by using fully-context-sensitive profiles to concentrate the optimizations on the hot code.

Maja Vukasović, Petar Đekanović, B. Spasojević et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.