diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-04-24 16:16:03 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-04-24 16:16:03 +0000 |
commit | 3fa801fbc2b1e15af81d785d48c147929591eb46 (patch) | |
tree | 430c0c7dd036fefa53e611e17153ed33ad134d12 /llvm/lib/Transforms | |
parent | a6578f70560f9fa421494728622e5ab68eba9883 (diff) | |
download | bcm5719-llvm-3fa801fbc2b1e15af81d785d48c147929591eb46.tar.gz bcm5719-llvm-3fa801fbc2b1e15af81d785d48c147929591eb46.zip |
LoopVectorizer: Change variable name Stride to ConsecutiveStride
This makes it easier to read the code.
No functionality change.
llvm-svn: 180197
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 56a9a2d3d45..8372bd07239 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -964,10 +964,10 @@ void InnerLoopVectorizer::vectorizeMemoryInstruction(Instruction *Instr, // If the pointer is loop invariant or if it is non consecutive, // scalarize the load. - int Stride = Legal->isConsecutivePtr(Ptr); - bool Reverse = Stride < 0; + int ConsecutiveStride = Legal->isConsecutivePtr(Ptr); + bool Reverse = ConsecutiveStride < 0; bool UniformLoad = LI && Legal->isUniform(Ptr); - if (Stride == 0 || UniformLoad) + if (!ConsecutiveStride || UniformLoad) return scalarizeInstruction(Instr); Constant *Zero = Builder.getInt32(0); @@ -3562,11 +3562,11 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) { TTI.getMemoryOpCost(I->getOpcode(), VectorTy, Alignment, AS); // Scalarized loads/stores. - int Stride = Legal->isConsecutivePtr(Ptr); - bool Reverse = Stride < 0; + int ConsecutiveStride = Legal->isConsecutivePtr(Ptr); + bool Reverse = ConsecutiveStride < 0; unsigned ScalarAllocatedSize = DL->getTypeAllocSize(ValTy); unsigned VectorElementSize = DL->getTypeStoreSize(VectorTy)/VF; - if (0 == Stride || ScalarAllocatedSize != VectorElementSize) { + if (!ConsecutiveStride || ScalarAllocatedSize != VectorElementSize) { unsigned Cost = 0; // The cost of extracting from the value vector and pointer vector. Type *PtrTy = ToVectorTy(Ptr->getType(), VF); |