[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:56 PDT 2024


================
@@ -731,6 +740,16 @@ llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
           NewPHI->eraseFromParent();
         }
 
+        // Eliminate copies of the loop heart intrinsic, if any.
----------------
efriedma-quic wrote:

If I understand the rules here correctly, this is only necessary if you're not completely unrolling the loop?

https://github.com/llvm/llvm-project/pull/91715


More information about the llvm-commits mailing list