[polly] r261876 - Use inline local variable declaration. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 07:52:43 PST 2016
Author: meinersbur
Date: Thu Feb 25 09:52:43 2016
New Revision: 261876
URL: http://llvm.org/viewvc/llvm-project?rev=261876&view=rev
Log:
Use inline local variable declaration. NFC.
Modified:
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=261876&r1=261875&r2=261876&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Thu Feb 25 09:52:43 2016
@@ -675,9 +675,8 @@ Value *VectorBlockGenerator::generateStr
Type *VectorPtrType = getVectorPtrTy(Pointer, VectorWidth);
unsigned Offset = NegativeStride ? VectorWidth - 1 : 0;
- Value *NewPointer = nullptr;
- NewPointer = generateLocationAccessed(Stmt, Load, ScalarMaps[Offset],
- VLTS[Offset], NewAccesses);
+ Value *NewPointer = generateLocationAccessed(Stmt, Load, ScalarMaps[Offset],
+ VLTS[Offset], NewAccesses);
Value *VectorPtr =
Builder.CreateBitCast(NewPointer, VectorPtrType, "vector_ptr");
LoadInst *VecLoad =
More information about the llvm-commits
mailing list