Skip to content

Commit 86482df

Browse files
authored
[VPlan] Use m_Broadcast to improve a match (NFC) (#153607)
1 parent 44df982 commit 86482df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,9 +1215,8 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
12151215
return;
12161216
}
12171217

1218-
if (match(Def,
1219-
m_VPInstruction<VPInstruction::ExtractLastElement>(
1220-
m_VPInstruction<VPInstruction::Broadcast>(m_VPValue(A))))) {
1218+
if (match(Def, m_VPInstruction<VPInstruction::ExtractLastElement>(
1219+
m_Broadcast(m_VPValue(A))))) {
12211220
Def->replaceAllUsesWith(A);
12221221
return;
12231222
}

0 commit comments

Comments
 (0)