[PATCH] D144162: [AMDGPU] Replace LegacyDA with Uniformity Analysis in AnnotateUniformValues
Sameer Sahasrabuddhe via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 22:44:51 PST 2023
sameerds added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp:81
void AMDGPUAnnotateUniformValues::visitBranchInst(BranchInst &I) {
- if (DA->isUniform(&I))
+ if (!UA->hasDivergentTerminator(*I.getParent()))
setUniformMetadata(&I);
----------------
sameerds wrote:
> I am not sure we should be doing this. Smells like a bug in the UA!
D144699 allows the original "isUniform()" call to work as expected on a BranchInst.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144162/new/
https://reviews.llvm.org/D144162
More information about the llvm-commits
mailing list