[llvm] [LoopUnroll] Consider convergence control tokens when unrolling (PR #91715)
    Eli Friedman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat May 11 11:55:57 PDT 2024
    
    
  
================
@@ -111,11 +112,22 @@ void CodeMetrics::collectEphemeralValues(
   completeEphemeralValues(Visited, Worklist, EphValues);
 }
 
+static bool isUsedOutsideOfLoop(const Instruction &I, const Loop &L) {
+  for (const auto *U : I.users()) {
+    if (auto *I = dyn_cast<Instruction>(U)) {
----------------
efriedma-quic wrote:
All users of Instructions are Instructions; just `cast<>`.
https://github.com/llvm/llvm-project/pull/91715
    
    
More information about the llvm-commits
mailing list