This commit adds some missing intrinsics into the isAlwaysUniform list for the AMDGPU backend.
@arsenm agreed - not quite sure how to do tests for this? I started to look at how we test alias analysis, and they have a cl::opt to force print the debug info for that pass, and that is how our amdgpu-alias-analysis.ll tests the aliasing rules. How exactly to test that divergence analysis did something here?
|584–585 ↗||(On Diff #182296)|
I think the presence of these two is questionable. getpc in particular should already behave correctly since it has no source operands. If s_buffer_load has divergent arguments, the program is broken anyway
|3–4 ↗||(On Diff #182296)|
This should probably be renamed, it's really testing readfirstlane, not work item.id.x