[llvm-commits] [llvm] r166232 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Nadav Rotem
nrotem at apple.com
Thu Oct 18 14:45:32 PDT 2012
Author: nadav
Date: Thu Oct 18 16:45:31 2012
New Revision: 166232
URL: http://llvm.org/viewvc/llvm-project?rev=166232&view=rev
Log:
fix a naming typo
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=166232&r1=166231&r2=166232&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Thu Oct 18 16:45:31 2012
@@ -166,7 +166,7 @@
// 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 @@
BasicBlock *MiddleBlock = VecBody->splitBasicBlock(VecBody->getTerminator(),
"middle.block");
-
-
BasicBlock *ScalarPH =
MiddleBlock->splitBasicBlock(MiddleBlock->getTerminator(),
"scalar.preheader");
@@ -818,14 +816,14 @@
// 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 @@
/// 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;
More information about the llvm-commits
mailing list