[PATCH] D145358: [AMDGPU] Use UniformityAnalysis in CodeGenPrepare

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 00:27:16 PST 2023


foad 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);
----------------
What was the purpose of the assert? Maybe remove it instead, or insert that the instruction has non-void type or something?


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