[IndVars] Don't break dominance in `eliminateIdentitySCEV`
[oota-llvm.git] / lib / Transforms / Utils / LoopUnroll.cpp
index 95d31d86644bef1da38ec27d7836db7aecfa0123..b7e248860c57f4440a2402a0e235cc4f9f43657d 100644 (file)
@@ -499,7 +499,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
     // Simplify any new induction variables in the partially unrolled loop.
     if (SE && !CompletelyUnroll) {
       SmallVector<WeakVH, 16> DeadInsts;
-      simplifyLoopIVs(L, SE, LPM, DeadInsts);
+      simplifyLoopIVs(L, SE, DT, LPM, DeadInsts);
 
       // Aggressively clean up dead instructions that simplifyLoopIVs already
       // identified. Any remaining should be cleaned up below.