[PATCH] D145358: [AMDGPU] Use UniformityAnalysis in CodeGenPrepare
Pierre van Houtryve via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 00:32:21 PST 2023
Pierre-vh added inline comments.
================
Comment at: llvm/lib/Analysis/UniformityAnalysis.cpp:36
if (TTI->isSourceOfDivergence(&I)) {
- assert(!I.isTerminator());
+ assert(!I.isTerminator() || isa<InvokeInst>(I));
markDivergent(I);
----------------
foad wrote:
> What was the purpose of the assert? Maybe remove it instead, or insert that the instruction has non-void type or something?
Not sure what the assert is for, I think @sameerds wrote it
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145358/new/
https://reviews.llvm.org/D145358
More information about the llvm-commits
mailing list