This commit adds some missing intrinsics into the isAlwaysUniform list for the AMDGPU backend.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
@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?
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp | ||
---|---|---|
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 |
test/Analysis/DivergenceAnalysis/AMDGPU/always_uniform.ll | ||
3–4 ↗ | (On Diff #182296) | This should probably be renamed, it's really testing readfirstlane, not work item.id.x |
Comment Actions
LGTM with name fix
test/Analysis/DivergenceAnalysis/AMDGPU/always_uniform.ll | ||
---|---|---|
3–4 ↗ | (On Diff #182296) | You changed this but didn't change the name? |