[llvm] [IVUsers] Make IV-use collection independent of SSA use-list order (PR #215261)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 04:17:05 PDT 2026


================
@@ -255,6 +279,10 @@ IVUsers::IVUsers(Loop *L, AssumptionCache *AC, LoopInfo *LI, DominatorTree *DT,
   EphValues.clear();
   CodeMetrics::collectEphemeralValues(L, AC, EphValues);
 
+  unsigned Position = 0;
+  for (const BasicBlock &BB : *L->getHeader()->getParent())
+    BBPositions[&BB] = Position++;
----------------
elle-j wrote:

Similar to my previous replies above, this has been removed along with the newest changes.

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


More information about the llvm-commits mailing list