aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-18 21:45:31 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-18 21:45:31 +0000
commit6220fb16c1d08534e770785f47717ee80baac517 (patch)
treeddbcf5270488bb0e746d240ad2cc1f2859411240 /lib/Transforms/Vectorize/LoopVectorize.cpp
parentb288ad8e3627c25747ba68d81a70bfe111efaa16 (diff)
fix a naming typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 9bbd9ab60b..7af4fa1050 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -166,7 +166,7 @@ private:
// Check if a pointer value is known to be disjoint.
// Example: Alloca, Global, NoAlias.
- bool isidentifiedSafeObject(Value* Val);
+ bool isIdentifiedSafeObject(Value* Val);
/// The loop that we evaluate.
Loop *TheLoop;
@@ -427,8 +427,6 @@ void SingleBlockLoopVectorizer::createEmptyLoop() {
BasicBlock *MiddleBlock = VecBody->splitBasicBlock(VecBody->getTerminator(),
"middle.block");
-
-
BasicBlock *ScalarPH =
MiddleBlock->splitBasicBlock(MiddleBlock->getTerminator(),
"scalar.preheader");
@@ -818,14 +816,14 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) {
// disjoint memory locations, or that they are no-alias arguments.
ValueVector::iterator r, re, w, we;
for (r = Reads.begin(), re = Reads.end(); r != re; ++r) {
- if (!isidentifiedSafeObject(*r)) {
+ if (!isIdentifiedSafeObject(*r)) {
DEBUG(dbgs() << "LV: Found a bad read Ptr: "<< **r << "\n");
return false;
}
}
for (w = Writes.begin(), we = Writes.end(); w != we; ++w) {
- if (!isidentifiedSafeObject(*w)) {
+ if (!isIdentifiedSafeObject(*w)) {
DEBUG(dbgs() << "LV: Found a bad write Ptr: "<< **w << "\n");
return false;
}
@@ -854,7 +852,7 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) {
/// Checks if the value is a Global variable or if it is an Arguments
/// marked with the NoAlias attribute.
-bool LoopVectorizationLegality::isidentifiedSafeObject(Value* Val) {
+bool LoopVectorizationLegality::isIdentifiedSafeObject(Value* Val) {
assert(Val && "Invalid value");
if (dyn_cast<GlobalValue>(Val))
return true;