Skip to content

Commit b13aac9

Browse files
committed
Add statistic variable
1 parent 2a351ed commit b13aac9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ const char LLVMLoopVectorizeFollowupEpilogue[] =
178178
STATISTIC(LoopsVectorized, "Number of loops vectorized");
179179
STATISTIC(LoopsAnalyzed, "Number of loops analyzed for vectorization");
180180
STATISTIC(LoopsEpilogueVectorized, "Number of epilogues vectorized");
181+
STATISTIC(LoopsAliasMasked, "Number of loops predicated with an alias mask");
181182

182183
static cl::opt<bool> EnableEpilogueVectorization(
183184
"enable-epilogue-vectorization", cl::init(true), cl::Hidden,
@@ -9925,6 +9926,8 @@ bool LoopVectorizePass::processLoop(Loop *L) {
99259926
};
99269927
std::optional<VectorizationFactor> MaybeVF =
99279928
LVP.plan(UserVF, UserIC, LVL.getLAI()->getRuntimePointerChecking()->getDiffChecks(), Expand, Checks.HasAliasMask);
9929+
if (Checks.HasAliasMask)
9930+
LoopsAliasMasked++;
99289931

99299932
VectorizationFactor VF = VectorizationFactor::Disabled();
99309933
unsigned IC = 1;

0 commit comments

Comments
 (0)