Skip to content

Commit e3cf243

Browse files
committed
Fix typo
1 parent 68574da commit e3cf243

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class LoopVectorizationLegality {
424424

425425
/// Returns true if there is at least one function call in the loop which
426426
/// returns a struct type and needs to be vectorized.
427-
bool hasStructVectorCall() const { return StructVecVecCallFound; }
427+
bool hasStructVectorCall() const { return StructVecCallFound; }
428428

429429
unsigned getNumStores() const { return LAI->getNumStores(); }
430430
unsigned getNumLoads() const { return LAI->getNumLoads(); }
@@ -652,7 +652,7 @@ class LoopVectorizationLegality {
652652
/// that so we can bail out until this is supported.
653653
/// TODO: Remove this flag once vectorizing calls with struct returns is
654654
/// supported.
655-
bool StructVecVecCallFound = false;
655+
bool StructVecCallFound = false;
656656

657657
/// Indicates whether this loop has an uncountable early exit, i.e. an
658658
/// uncountable exiting block that is not the latch.

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
958958
Type *InstTy = Inst.getType();
959959
if (isa<CallInst>(Inst) && isa<StructType>(InstTy) &&
960960
canWidenCallReturnType(InstTy)) {
961-
StructVecVecCallFound = true;
961+
StructVecCallFound = true;
962962
// For now, we can only widen struct values returned from calls where
963963
// all users are extractvalue instructions.
964964
return llvm::all_of(Inst.uses(), [](auto &Use) {

0 commit comments

Comments
 (0)