ACM Transactions on Architecture and Code Optimization · 2020 · 11 citations · 15 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureProgramming LanguagesData-flow AnalysisInstruction-level ParallelismShader ProgrammingCode OptimizationDynamic Behavior ProfilingFunctional CorrectnessMicroarchitectural OptimizationProfile-guided OptimizationShader Pipelines
In this article, we first characterize register operand value locality in shader programs of modern gaming applications and observe that there is a high likelihood of one of the register operands of several multiply, logical-and, and similar operations being zero, dynamically. We provide intuition, examples, and a quantitative characterization for how zeros originate dynamically in these programs. Next, we show that this dynamic behavior can be gainfully exploited with a profile-guided code optimization called Zeroploit that transforms targeted code regions into a zero-(value-)specialized fast path and a default slow path. The fast path benefits from zero-specialization in two ways, namely: (a) the backward slice of the other operand of a given multiply or logical-and can be skipped dynamically, provided the only use of that other operand is in the given instruction, and (b) the forward slice of instructions originating at the given instruction can be zero-specialized, potentially triggering further backward slice specializations from operations of that forward slice as well. Such specialization helps the fast path avoid redundant dynamic computations as well as memory fetches, while the fast-slow versioning transform helps preserve functional correctness. With an offline value profiler and manually optimized shader programs, we demonstrate that Zeroploit is able to achieve an average speedup of 35.8% for targeted shader programs, amounting to an average frame-rate speedup of 2.8% across a collection of modern gaming applications on an NVIDIA® GeForce RTX™ 2080 GPU.
15
Value locality and load value prediction
Mikko H. Lipasti, Christopher B. Wilkerson, John Paul Shen · 1996 · 672 citations
Jorge Albericio, Patrick Judd, Tayler Hetherington et al. · ACM SIGARCH Computer Architecture News · 2016 · 639 citations
Conversion of control dependence to data dependence
John R. Allen, Ken Kennedy, Carrie Porterfield et al. · 1983 · 605 citations
Cambricon-X: An accelerator for sparse neural networks
Shijin Zhang, Zidong Du, Lei Zhang et al. · 2016 · 597 citations
Brad Calder, Peter Feller, Alan Eustace · International Symposium on Microarchitecture · 1997 · 182 citations