Loads through flat addrspace to non-uniform values were being marked uniform. In general we can't assume flat loads are uniform, and cases where we can prove they are should be handled through infer-address-spaces.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/Analysis/DivergenceAnalysis/AMDGPU/divergent-flat.ll | ||
---|---|---|
5–12 | You don't need the addrspacecast, and it would be better to just have the argument be flat in the first place. This theoretically could be smarter and say yes in this case | |
5–12 | Also it looks like we are missing a test for the private case anyway. Can you just rename the test to loads and add a test for private as well? |