diff options
author | Shilei Tian <i@tianshilei.me> | 2024-12-11 16:47:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 16:47:51 -0500 |
commit | 7dbd6cd2946ec3a9b4ad2dfd7ead177baac15bd7 (patch) | |
tree | 83ce32d3d3c6b246802f3862d11bfebb40e2b900 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | d5b7b970347fd4aa5591bfee38be4d8e7a53b134 (diff) | |
download | llvm-7dbd6cd2946ec3a9b4ad2dfd7ead177baac15bd7.zip llvm-7dbd6cd2946ec3a9b4ad2dfd7ead177baac15bd7.tar.gz llvm-7dbd6cd2946ec3a9b4ad2dfd7ead177baac15bd7.tar.bz2 |
[AMDGPU][Attributor] Make `AAAMDFlatWorkGroupSize` honor existing attribute (#114357)
If a function has `amdgpu-flat-work-group-size`, honor it in `initialize` by
taking its value directly; otherwise, it uses the default range as a starting
point. We will no longer manipulate the known range, which can cause issues
because the known range is a "throttle" to the assumed range such that the
assumed range can't get widened properly in `updateImpl` if the known range is
not set properly for whatever reasons. Another benefit of not touching the known
range is, if we indicate pessimistic state, it also invalidates the AA such that
`manifest` will not be called. Since we honor the attribute, we don't want and
will not add any half-baked attribute added to a function.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions