[llvm] [Attributor] Fix an issue that an access is skipped by mistake (PR #101862)

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 01:43:48 PDT 2024


rovka wrote:

> > Testcase?
> 
> Well, the thing is, this can only be exposed in an Attributor use that doesn't have `AAInterFnReachability`. Regular `AttributorPass` will not have this issue. Only `AMDGPUAttributorPass` can do this, but the enabling of `AAIndirectCallInfo ` has been reverted so even that can't expose it.

I'm not very familiar with these APIs, but is this something that would be easier to test with a C++ unit test? I see there are already some [attributor unit tests](https://github.com/llvm/llvm-project/blob/main/llvm/unittests/Transforms/IPO/AttributorTest.cpp).

https://github.com/llvm/llvm-project/pull/101862


More information about the llvm-commits mailing list