diff options
author | Scott Linder <Scott.Linder@amd.com> | 2019-12-03 17:18:21 -0500 |
---|---|---|
committer | Scott Linder <Scott.Linder@amd.com> | 2019-12-05 11:27:12 -0500 |
commit | d96ea47c75fdf4a62358eae49a0026bcf031bde6 (patch) | |
tree | ba114146d5ea5e871645a59be632095cceac8850 /lldb/packages/Python/lldbsuite | |
parent | 3c6b5d3674e85f2be81e74d104055269c017a430 (diff) | |
download | bcm5719-llvm-d96ea47c75fdf4a62358eae49a0026bcf031bde6.tar.gz bcm5719-llvm-d96ea47c75fdf4a62358eae49a0026bcf031bde6.zip |
[AMDGPU][HIP] Improve opt-level handling
Summary:
The HIP toolchain invokes `llc` without an explicit opt-level, meaning
it always uses the default (-O2). This makes it impossible to use -O1,
for example. The HIP toolchain also coerces -Os/-Oz to -O2 even when
invoking opt, and it coerces -Og to -O2 rather than -O1.
Forward the opt-level to `llc` as well as `opt`, and only coerce levels
where it is required.
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70987
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions