International Symposium on Code Generation and Optimization, 2004. CGO 2004.最新文献

筛选
英文 中文
LLVM: a compilation framework for lifelong program analysis & transformation LLVM:用于终身程序分析和转换的编译框架
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281665
Chris Lattner, Vikram S. Adve
{"title":"LLVM: a compilation framework for lifelong program analysis & transformation","authors":"Chris Lattner, Vikram S. Adve","doi":"10.1109/CGO.2004.1281665","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281665","url":null,"abstract":"We describe LLVM (low level virtual machine), a compiler framework designed to support transparent, lifelong program analysis and transformation for arbitrary programs, by providing high-level information to compiler transformations at compile-time, link-time, run-time, and in idle time between runs. LLVM defines a common, low-level code representation in static single assignment (SSA) form, with several novel features: a simple, language-independent type-system that exposes the primitives commonly used to implement high-level language features; an instruction for typed address arithmetic; and a simple mechanism that can be used to implement the exception handling features of high-level languages (and setjmp/longjmp in C) uniformly and efficiently. The LLVM compiler framework and code representation together provide a combination of key capabilities that are important for practical, lifelong analysis and transformation of programs. To our knowledge, no existing compilation approach provides all these capabilities. We describe the design of the LLVM representation and compiler framework, and evaluate the design in three ways: (a) the size and effectiveness of the representation, including the type information it provides; (b) compiler performance for several interprocedural problems; and (c) illustrative examples of the benefits LLVM provides for several challenging compiler problems.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"5 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122294274","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5207
Probabilistic predicate-aware modulo scheduling 概率谓词感知模调度
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281671
M. Smelyanskiy, S. Mahlke, E. Davidson
{"title":"Probabilistic predicate-aware modulo scheduling","authors":"M. Smelyanskiy, S. Mahlke, E. Davidson","doi":"10.1109/CGO.2004.1281671","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281671","url":null,"abstract":"Predicated execution enables the removal of branches by converting segments of branching code into sequences of conditional operations. An important side effect of this transformation is that the compiler must unconditionally assign resources to predicated operations. However, a resource is only put to productive use when the predicate associated with an operation evaluates to True. To reduce this superfluous commitment of resources, we propose probabilistic predicate-aware scheduling to assign multiple operations to the same resource at the same time, thereby over-subscribing its use. Assignment is performed in a probabilistic manner using a combination of predicate profile information and predicate analysis aimed at maximizing the benefits of over-subscription in view of the expected degree of conflict. Conflicts occur when two or more operations assigned to the same resource have their predicates evaluate to True. A predicate-aware VLIW processor pipeline detects such conflicts, recovers, and correctly executes the conflicting operations. By increasing the effective throughput of a fixed set of resources, probabilistic predicate-aware scheduling provided an average of 20% performance gain in our evaluations on a 4-issue processor, and 8% gain on a 6-issue processor.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"30 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129574138","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
FLASH: foresighted latency-aware scheduling heuristic for processors with customized datapaths FLASH:具有自定义数据路径的处理器的预见延迟感知调度启发式
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281675
M. Kudlur, Kevin Fan, Michael L. Chu, Rajiv A. Ravindran, Nathan Clark, S. Mahlke
{"title":"FLASH: foresighted latency-aware scheduling heuristic for processors with customized datapaths","authors":"M. Kudlur, Kevin Fan, Michael L. Chu, Rajiv A. Ravindran, Nathan Clark, S. Mahlke","doi":"10.1109/CGO.2004.1281675","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281675","url":null,"abstract":"Application-specific instruction set processors (ASIPs) have the potential to meet the challenging cost, performance, and power goals of future embedded processors by customizing the hardware to suit an application. A central problem is creating compilers that are capable of dealing with the heterogeneous and nonuniform hardware created by the customization process. The processor datapath provides an effective area to customize, but specialized datapaths often have nonuniform connectivity between the function units, making the effective latency of a function unit dependent on the consuming operation. Traditional instruction schedulers break down in this environment due to their locally greedy nature of binding the best choice for a single operation even though that choice may be poor due to a lack of communication paths. To effectively schedule with nonuniform connectivity, we propose a foresighted latency-aware scheduling heuristic (FLASH) that performs lookahead across future scheduling steps to estimate the effects of a potential binding. FLASH combines a set of lookahead heuristics to achieve effective foresight with low compile-time overhead.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"10 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128777977","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 9
A dynamically tuned sorting library 一个动态调整的排序库
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281668
Xiaoming Li, M. Garzarán, D. Padua
{"title":"A dynamically tuned sorting library","authors":"Xiaoming Li, M. Garzarán, D. Padua","doi":"10.1109/CGO.2004.1281668","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281668","url":null,"abstract":"Empirical search is a strategy used during the installation of library generators such as ATLAS, FFTW, and SPIRAL to identify the algorithm or the version of an algorithm that delivers the best performance. In the past, empirical search has been applied almost exclusively to scientific problems. In this paper, we discuss the application of empirical search to sorting, which is one of the best understood symbolic computing problems. When contrasted with the dense numerical computations of ATLAS, FFTW, and SPIRAL, sorting presents a new challenge, namely that the relative performance of the algorithms depend not only on the characteristics of the target machine and the size of the input data but also on the distribution of values in the input data set. Empirical search is applied in the study reported here as part of a sorting library generator. The resulting routines dynamically adapt to the characteristics of the input data by selecting the best sorting algorithm from a small set of alternatives. To generate the run time selection mechanism our generator makes use of machine learning to predict the best algorithm as a function of the characteristics of the input data set and the performance of the different algorithms on the target machine. This prediction is based on the data obtained through empirical search at installation time. Our results show that our approach is quite effective. When sorting data inputs of 12M keys with various standard deviations, our adaptive approach selected the best algorithm for all the input data sets and all platforms that we tried in our experiments. The wrong decision could have introduced a performance degradation of up to 133%, with an average value of 44%.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"20 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125314051","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 98
Exposing memory access regularities using object-relative memory profiling 使用对象相对内存分析暴露内存访问规律
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281684
Qiang Wu, Artem Pyatakov, Alexey Spiridonov, Easwaran Raman, D. Clark, David I. August
{"title":"Exposing memory access regularities using object-relative memory profiling","authors":"Qiang Wu, Artem Pyatakov, Alexey Spiridonov, Easwaran Raman, D. Clark, David I. August","doi":"10.1109/CGO.2004.1281684","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281684","url":null,"abstract":"Memory profiling is the process of characterizing a program's memory behavior by observing and recording its response to specific input sets. Relevant aspects of the program's memory behavior may then be used to guide memory optimizations in an aggressively optimizing compiler. In general, memory access behavior has eluded meaningful characterization because of confounding artifacts from memory allocators, linker data layout, and OS memory management. Since these artifacts may change from run to run, memory access patterns may appear different in each run even for the same input set. Worse, regular memory access behavior such as linked list traversals appear to have no structure. We present object-relative translation and decomposition techniques to eliminate these artifacts and to expose previously obscured memory access patterns. To demonstrate the potential of these ideas, we implement two different memory profilers targeted at different sets of applications. These profilers outperform the existing ones in terms of profile size and useful information per byte of data. The first profiler is a lossless profiler, called WHOMP, which uses object-relativity to achieve a 22% better compression than the previously best known scheme. The second profiler, called LEAP, uses lossy compression to get highly compact profiles while providing useful information to the targeted applications. LEAP correctly characterizes the memory alias rates for 56% more instruction pairs than the previously best known scheme with a practical running time.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"351 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131541394","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 28
A compiler scheme for reusing intermediate computation results 一种重用中间计算结果的编译器方案
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281681
Y. Ding, Zhiyuan Li
{"title":"A compiler scheme for reusing intermediate computation results","authors":"Y. Ding, Zhiyuan Li","doi":"10.1109/CGO.2004.1281681","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281681","url":null,"abstract":"Recent research has shown that programs often exhibit value locality. Such locality occurs when a code segment, although executed repeatedly in the program, takes only a small number of different values as input and, naturally, generates a small number of different outputs. It is potentially beneficial to replace such a code segment by a table, which records the computation results for the previous inputs. When the program execution re-enters the code segment with a repeated input, its computation can be simplified to a table look-up. We discuss a compiler scheme to identify code segments, which are good candidates for computation reuse. We discuss the conditions under which the table look-up costs less than repeating the execution, and we perform profiling to identify candidates, which have many repeated inputs at run time. Compared to previous work, this scheme requires no special hardware support and is therefore particularly useful for resource constrained systems such as handheld computing devices. We implement our scheme and its supporting analyses in GCC. We experiment with several multimedia benchmarks and the GNU Go game by executing them on a handheld computing device. The results show the scheme to improve the performance and to reduce the energy consumption quite substantially for these programs.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"36 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128306922","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 29
Exploring the performance potential of Itanium/spl reg/ processors with ILP-based scheduling 探索基于ilp调度的Itanium/spl reg/处理器的性能潜力
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281674
S. Winkel
{"title":"Exploring the performance potential of Itanium/spl reg/ processors with ILP-based scheduling","authors":"S. Winkel","doi":"10.1109/CGO.2004.1281674","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281674","url":null,"abstract":"HP and Intel's Itanium processor family (IPF) is considered as one of the most challenging processor architectures to generate code for. During global instruction scheduling, the compiler must balance the use of strongly interdependent techniques like code motion, speculation and predication. A too conservative application of these features can lead to empty execution slots, contrary to the EPIC philosophy. But overuse can cause resource shortage which spoils the benefit. We tackle this problem using integer linear programming (ILP), a proven standard optimization method. Our ILP model comprises global, partial-ready code motion with automated generation of compensation code as well as vital IPF features like control/data speculation and predication. The ILP approach can-with some restrictions-resolve the interdependences between these decisions and deliver the global optimum. This promises a speedup for compute-intensive applications as well as some theoretically funded insights into the potential of the architecture. Experiments with several hot functions from the SPEC benchmarks show substantial improvements: our postpass optimizer reduces the schedule lengths produced by Intel's compiler by about 20-40%. The resulting speedup of these routines is 16% on average.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130407488","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 16
The accuracy of initial prediction in two-phase dynamic binary translators 两相动态二进制翻译器的初始预测精度
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281677
Youfeng Wu, M. Breternitz, Justin Quek, Orna Etzion, J. Fang
{"title":"The accuracy of initial prediction in two-phase dynamic binary translators","authors":"Youfeng Wu, M. Breternitz, Justin Quek, Orna Etzion, J. Fang","doi":"10.1109/CGO.2004.1281677","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281677","url":null,"abstract":"Dynamic binary translators use a two-phase approach to identify and optimize frequently executed code dynamically. In the first step (profiling phase), blocks of code are interpreted or quickly translated to collect execution frequency information for the blocks. In the second phase (optimization phase), frequently executed blocks are grouped into regions and advanced optimizations are applied on them. This approach implicitly assumes that the initial profile of each block is representative of the block throughout its lifetime. We investigate the ability of the initial profile to predict the average program behavior. We compare the predicted behavior of varying lengths of the initial execution with the average program behavior for the whole program execution, and use the prediction from the training input as the reference. Our result indicates that, for the SPEC2000 benchmarks, even very short initial profiles have comparable prediction accuracy to the traditional profile-guided optimizations using the training input, although the initial profile is inadequate for predicting loop trip count information for some integer programs and several benchmarks can benefit from phase-awareness during dynamic binary translation.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"37 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128262867","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 19
Compiler optimization of memory-resident value communication between speculative threads 投机线程间内存驻留值通信的编译器优化
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281662
Antonia Zhai, Christopher B. Colohan, J. Steffan, T. Mowry
{"title":"Compiler optimization of memory-resident value communication between speculative threads","authors":"Antonia Zhai, Christopher B. Colohan, J. Steffan, T. Mowry","doi":"10.1109/CGO.2004.1281662","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281662","url":null,"abstract":"Efficient inter-thread value communication is essential for improving performance in thread-level speculation (TLS). Although several mechanisms for improving value communication using hardware support have been proposed, there is relatively little work on exploiting the potential of compiler optimization. Building on recent research on compiler optimization of scalar value communication between speculative threads, we propose compiler techniques for the optimization of memory-resident values. In TLS, data dependences through memory-resident values are tracked by the underlying hardware and preserved by re-executing any speculative thread that violates a dependence; however, re-execution incurs a large performance penalty and should be used only to resolve data dependences that are infrequent. In contrast, value communication for frequently-occurring data dependences must be very efficient. We propose using the compiler to first identify frequently-occurring memory-resident data dependences, then insert synchronization for communicating values to preserve these dependences. We find that by synchronizing frequently-occurring data dependences we can significantly improve the efficiency of parallel execution. A comparison between compiler-inserted and hardware-inserted memory synchronization reveals that the two techniques are complementary, with each technique benefitting different benchmarks.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"323 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115912916","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 54
Code generation for single-dimension software pipelining of multi-dimensional loops 多维循环的一维软件流水线的代码生成
International Symposium on Code Generation and Optimization, 2004. CGO 2004. Pub Date : 2004-03-20 DOI: 10.1109/CGO.2004.1281673
Hongbo Rong, Alban Douillet, R. Govindarajan, G. Gao
{"title":"Code generation for single-dimension software pipelining of multi-dimensional loops","authors":"Hongbo Rong, Alban Douillet, R. Govindarajan, G. Gao","doi":"10.1109/CGO.2004.1281673","DOIUrl":"https://doi.org/10.1109/CGO.2004.1281673","url":null,"abstract":"Traditionally, software pipelining is applied either to the innermost loop of a given loop nest or from the innermost loop to the outer loops. We proposed a scheduling method, called single-dimension software pipelining (SSP), to software pipeline a multidimensional loop nest at an arbitrary loop level. We describe our solution to SSP code generation. In contrast to traditional software pipelining, SSP handles two distinct repetitive patterns, and thus requires new code generation algorithms. Further, these two distinct repetitive patterns complicate register assignment and require two levels of register renaming. As rotating registers support renaming at only one level, our solution is based on a combination of dynamic register renaming (using rotating registers) and static register renaming (using code replication). Finally, code size increase, an even more important issue for SSP than for traditional software-pipelining, is also addressed. Optimizations are proposed to reduce code size without significant performance degradation. We first present a code generation scheme and subsequently implement it for the IA-64 architecture, making effective use of rotating registers and predicated execution. We present some initial experimental results, which demonstrate not only the feasibility and correctness of our code generation scheme, but also its code quality.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"144 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121719092","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 21
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
相关产品
×
本文献相关产品
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书