summaryrefslogtreecommitdiff
path: root/lib/Analysis/DependenceAnalysis.cpp
diff options
context:
space:
mode:
authorPreston Briggs <preston.briggs@gmail.com>2012-11-29 04:30:52 +0000
committerPreston Briggs <preston.briggs@gmail.com>2012-11-29 04:30:52 +0000
commita18d377e73d3dd96233011e9da9789861fb8f315 (patch)
tree9905c3b001109b48331733e889931987775aaa17 /lib/Analysis/DependenceAnalysis.cpp
parent39b5c0c049a19c7a7feffc9506da07923cc136e4 (diff)
downloadllvm-a18d377e73d3dd96233011e9da9789861fb8f315.tar.gz
llvm-a18d377e73d3dd96233011e9da9789861fb8f315.tar.bz2
llvm-a18d377e73d3dd96233011e9da9789861fb8f315.tar.xz
Cleaned up a couple of comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DependenceAnalysis.cpp')
-rw-r--r--lib/Analysis/DependenceAnalysis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/DependenceAnalysis.cpp b/lib/Analysis/DependenceAnalysis.cpp
index 2068f1fb96..1bade20d63 100644
--- a/lib/Analysis/DependenceAnalysis.cpp
+++ b/lib/Analysis/DependenceAnalysis.cpp
@@ -2212,7 +2212,7 @@ const SCEVConstant *getConstantPart(const SCEVMulExpr *Product) {
//
// It occurs to me that the presence of loop-invariant variables
// changes the nature of the test from "greatest common divisor"
-// to "a common divisor!"
+// to "a common divisor".
bool DependenceAnalysis::gcdMIVtest(const SCEV *Src,
const SCEV *Dst,
FullDependence &Result) const {
@@ -3555,7 +3555,7 @@ Dependence *DependenceAnalysis::depends(Instruction *Src,
}
}
- // make sure Scalar flags are set correctly
+ // Make sure the Scalar flags are set correctly.
SmallBitVector CompleteLoops(MaxLevels + 1);
for (unsigned SI = 0; SI < Pairs; ++SI)
CompleteLoops |= Pair[SI].Loops;
@@ -3580,8 +3580,8 @@ Dependence *DependenceAnalysis::depends(Instruction *Src,
bool AllEqual = true;
for (unsigned II = 1; II <= CommonLevels; ++II) {
if (Result.getDirection(II) != Dependence::DVEntry::EQ) {
- AllEqual = false;
- break;
+ AllEqual = false;
+ break;
}
}
if (AllEqual)