summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-14 17:31:01 +0000
committerDan Gohman <gohman@apple.com>2009-12-14 17:31:01 +0000
commit30844c3950ee869eb430ce718b5a994fabed7aa7 (patch)
tree362324f6a025d66c8fdd1c8b60fb0c149dcf66fc /lib/Transforms/Scalar/LoopStrengthReduce.cpp
parentc71c0e958c55bbf389ba27edfa9a7d4206a8fe2c (diff)
downloadllvm-30844c3950ee869eb430ce718b5a994fabed7aa7.tar.gz
llvm-30844c3950ee869eb430ce718b5a994fabed7aa7.tar.bz2
llvm-30844c3950ee869eb430ce718b5a994fabed7aa7.tar.xz
Fix a thinko; isNotAlreadyContainedIn had a built-in negative, so the
condition was inverted when the code was converted to contains(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index d79a713a07..85cc71294c 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -250,7 +250,7 @@ static bool containsAddRecFromDifferentLoop(const SCEV *S, Loop *L) {
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;