[llvm-commits] [llvm] r91295 - in /llvm/trunk/lib: Analysis/IVUsers.cpp Transforms/Scalar/LoopStrengthReduce.cpp
Dan Gohman
gohman at apple.com
Mon Dec 14 09:31:01 PST 2009
Author: djg
Date: Mon Dec 14 11:31:01 2009
New Revision: 91295
URL: http://llvm.org/viewvc/llvm-project?rev=91295&view=rev
Log:
Fix a thinko; isNotAlreadyContainedIn had a built-in negative, so the
condition was inverted when the code was converted to contains().
Modified:
llvm/trunk/lib/Analysis/IVUsers.cpp
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Analysis/IVUsers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IVUsers.cpp?rev=91295&r1=91294&r2=91295&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IVUsers.cpp (original)
+++ llvm/trunk/lib/Analysis/IVUsers.cpp Mon Dec 14 11:31:01 2009
@@ -53,7 +53,7 @@
if (newLoop == L)
return false;
// if newLoop is an outer loop of L, this is OK.
- if (!newLoop->contains(L->getHeader()))
+ if (newLoop->contains(L->getHeader()))
return false;
}
return true;
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=91295&r1=91294&r2=91295&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon Dec 14 11:31:01 2009
@@ -250,7 +250,7 @@
if (newLoop == L)
return false;
// if newLoop is an outer loop of L, this is OK.
- if (!newLoop->contains(L->getHeader()))
+ if (newLoop->contains(L->getHeader()))
return false;
}
return true;
More information about the llvm-commits
mailing list