[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 07:59:34 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);
----------------
I am not sure we should be doing this. Smells like a bug in the UA!
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