Isolating Compiler Optimization Faults via Differentiating Finer-grained Options
Isolating Compiler Optimization Faults via Differentiating Finer-grained Options
复制标题
通过区分更细粒度的选项来隔离编译器优化故障
DOI:
10.1109/saner53432.2022.00065
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Hai Jin
中科院分区:
文献类型:
--
作者:
Jing Yang;Yibiao Yang;Maolin Sun;Ming Wen;Yuming Zhou;Hai Jin
Code optimization is an essential feature for compilers and almost all software products are released by compiler optimizations. Consequently, bugs in code optimization will inevitably cast significant impact on the correctness of software systems. Locating optimization bugs in compilers is challenging as compilers typically support a large amount of optimization configurations. Although prior studies have proposed to locate compiler bugs via generating witness test programs, they are still time-consuming and not effective enough. To address such limitations, we propose an automatic bug localization approach, ODFL, for locating compiler optimization bugs via differentiating finer-grained options in this study. Specifically, we first disable the fine-grained options that are enabled by default under the bug-triggering optimization levels independently to obtain bug-free and bug-related fine-grained options. We then configure several effective passing and failing optimization sequences based on such fine-grained options to obtain multiple failing and passing compiler coverage. Finally, such generated coverage information can be utilized via Spectrum-Based Fault Localization formulae to rank the suspicious compiler files. We run ODFL on 60 buggy GCC compilers from an existing benchmark. The experimental results show that ODFL significantly outperforms the state-of-the-art compiler bug isolation approach RecBi in terms of all the evaluated metrics, demonstrating the effectiveness of ODFL. In addition, ODFL is much more efficient than RecBi as it can save more than 88% of the time for locating bugs on average.
DOI:
--
发表时间:
2008
期刊:
--
影响因子:
--
作者:
Ayal Zaks
通讯作者:
Ayal Zaks