LoopVectorize: Remove unnecessary RAUW
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index a73c59bd4f10f0efc0390af8dd5e6be76795e7df..83e19f406dec971e7d3b75f21052a6915040c7b9 100644 (file)
@@ -1194,8 +1194,6 @@ private:
     NewLoopID->replaceOperandWith(0, NewLoopID);
 
     TheLoop->setLoopID(NewLoopID);
-    if (LoopID)
-      LoopID->replaceAllUsesWith(NewLoopID);
     LoopID = NewLoopID;
   }