Skip to content

Commit 6af7c13

Browse files
committed
[LoopVectorize] getStepVector - reduce scope of local variable. NFC.
1 parent dcffa7d commit 6af7c13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,9 +2343,8 @@ static Value *getStepVector(Value *Val, Value *StartIdx, Value *Step,
23432343

23442344
// Create a vector of consecutive numbers from zero to VF.
23452345
VectorType *InitVecValVTy = ValVTy;
2346-
Type *InitVecValSTy = STy;
23472346
if (STy->isFloatingPointTy()) {
2348-
InitVecValSTy =
2347+
Type *InitVecValSTy =
23492348
IntegerType::get(STy->getContext(), STy->getScalarSizeInBits());
23502349
InitVecValVTy = VectorType::get(InitVecValSTy, VLen);
23512350
}

0 commit comments

Comments
 (0)