[PATCH] D153744: [LoopUnroll] adjust for new `convergent` semantics

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 11:15:12 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Analysis/CodeMetrics.cpp:114-126
 
+static bool isConvergenceCtrlIntr(const Instruction &I) {
+  auto *Intrinsic = dyn_cast<IntrinsicInst>(&I);
+  if (!Intrinsic)
+    return false;
+  switch (Intrinsic->getIntrinsicID()) {
+  case Intrinsic::experimental_convergence_entry:
----------------
It might be worth introducing a ConvergenceControlInst subclass of IntrinsicInst 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153744/new/

https://reviews.llvm.org/D153744



More information about the llvm-commits mailing list