An Efficient GPU Implementation of Inclusion-Based Pointer Analysis
Authors:
- 2 February 2015
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 27 (2) , 353-366
Abstract
We present an efficient GPU implementation of Andersen's whole-program inclusion-based pointer analysis, a fundamental analysis on which many others are based, including optimising compilers, bug detection and security analyses. Andersen's algorithm makes extensive modifications to the graph that represents the pointer-manipulating statements in a program. These modifications are highly irregular, input-dependent and statically unpredictable, making it much more challenging to balance such graph workloads across a multitude of GPU cores than those dealt with by traditional graph algorithms such as DFS and BFS. To parallelise Andersen's analysis efficiently on GPUs, we introduce an imbalance-aware workload partitioning scheme that divides its workload dynamically among the concurrent warps, initially in a warp-centric manner (during the coarsegrain stage) but later switches to a task-pool-based model when a workload imbalance is detected (during the fine-grain stage). We improve further its performance by using an adaptive group propagation scheme to reduce some redundant traversals. For a set of 14 C benchmarks evaluated, our parallel implementation of Andersen's analysis achieves a significant speedup of 46 percent on average over the state-of-the art on an NVIDIA Tesla K20c GPU.Keywords
Funding Information
- Australian Research Council (DP130101970)
- Australian Research Council (DP150102109)
- National Natural Science Foundation of China (61170049)
This publication has 45 references indexed in Scilit:
- Time- and space-efficient flow-sensitive points-to analysisACM Transactions on Architecture and Code Optimization, 2013
- Making context-sensitive inclusion-based pointer analysis practical for compilers using parameterised summarisationSoftware: Practice and Experience, 2013
- Parallel Replication-Based Points-To Analysis2012
- Probabilistic Points-to Analysis for Java2011
- Increasing the Scope and Resolution of Interprocedural Static Single AssignmentLecture Notes in Computer Science, 2009
- Accelerating Large Graph Algorithms on the GPU Using CUDA2008
- Efficient field-sensitive pointer analysis of CACM Transactions on Programming Languages and Systems, 2007
- Online Cycle Detection and Difference Propagation: Applications to Pointer AnalysisSoftware Quality Journal, 2004
- Estimating the Impact of Scalable Pointer Analysis on OptimizationLecture Notes in Computer Science, 2001
- Propagating differences: An efficient new fixpoint algorithm for distributive constraint systems1998