LLParser: Handle BlockAddresses on-the-fly
[oota-llvm.git] / lib / Transforms / Scalar / LoopUnrollPass.cpp
index 2e94a44cad7282b325589f679403b23b3dc9eeed..3f12209e144f034870f332cb55d44230cac61a34 100644 (file)
@@ -302,7 +302,6 @@ static void SetLoopAlreadyUnrolled(Loop *L) {
   // Set operand 0 to refer to the loop id itself.
   NewLoopID->replaceOperandWith(0, NewLoopID);
   L->setLoopID(NewLoopID);
-  LoopID->replaceAllUsesWith(NewLoopID);
 }
 
 unsigned LoopUnroll::selectUnrollCount(