請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/68400| 標題: | 降低預執行最佳化的負面影響於使用者輸入相關的程式 Minimizing Negative Impact from Input-sensitive Profiling Guided Optimization |
| 作者: | Yu-Ling Wang 王友伶 |
| 指導教授: | 徐慰中 |
| 關鍵字: | 編譯器,優化,預執行優化,輸入靈敏度, Compiler,Optimization,Profile guided optimization,input sensitivity, |
| 出版年 : | 2017 |
| 學位: | 碩士 |
| 摘要: | 預執行優化技巧是編譯器利用程式實際執行的行為來做優化,但前提 是先前收集到的程式特徵要和真實線上情況相近,否則預執行優化技 巧會傷害程式效能。這個研究討論在 LLVM 上的抽樣預執行優化的流 程,舉出了一些預執行優化降低程式效能的例子,並且嘗試以線性合 併靜態分支預測與收集到的程式特徵來做保守的預執行優化。實驗結 果顯示此方法在一些程式之中降低預執行優化的負面影響。 Profile Guided Optimizations (PGO) exploit runtime profile information from sample runs to predict the execution behavior of a program. However, the premise of PGO is that the profile of a sample run could likely represent the behavior of the program execution in general. In some conditions, this premise is not true, and when that happens, profile-guided optimizations may not help. Worse yet, they could significantly degrade the performance of the program. This work discusses the sampling profile guided optimizations adopted in LLVM and shows performance degradation of multiple pro- grams after PGO applied. We propose a conservative approach of using a linear combination of static branch prediction and the gathered branch profile from sample runs to guide optimizations. Such a combination has shown to be effective on reducing the negative impact of the original PGO in LLVM on multiple programs. |
| URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/68400 |
| DOI: | 10.6342/NTU201703357 |
| 全文授權: | 有償授權 |
| 顯示於系所單位: | 資訊工程學系 |
文件中的檔案:
| 檔案 | 大小 | 格式 | |
|---|---|---|---|
| ntu-106-1.pdf 未授權公開取用 | 1.65 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。
