From bca0d571797735532d8d6f558db8a7c259016ede Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 9 Apr 2007 22:20:10 +0000 Subject: [PATCH] Check _all_ PHINodes. llvm-svn: 35836 --- llvm/lib/Transforms/Scalar/LoopRotation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index eebc69c53ff9..783056d0790e 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -366,7 +366,7 @@ void LoopRotate::updateExitBlock() { // There is already one incoming value from original pre-header block. if (PN->getBasicBlockIndex(OrigPreHeader) != -1) - return; + continue; const RenameData *ILoopHeaderInfo; Value *V = PN->getIncomingValueForBlock(OrigHeader);