Skip to content

Commit e009f9e

Browse files
committed
[VPlan] Refine comments
1 parent eb6a9b0 commit e009f9e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,8 @@ static void recursivelyDeleteDeadRecipes(VPValue *V) {
939939
}
940940
}
941941

942-
/// Try to fold \p R using InstSimplifyFolder to a constant. Will succeed and
943-
/// return a non-nullptr Value for a handled \p Opcode if \p Operands are
942+
/// Try to fold \p R using InstSimplifyFolder. Will succeed and return a
943+
/// non-nullptr Value for a handled \p Opcode if corresponding \p Operands are
944944
/// foldable.
945945
static Value *tryToConstantFold(const VPRecipeBase &R, unsigned Opcode,
946946
ArrayRef<VPValue *> Operands,
@@ -995,7 +995,8 @@ static Value *tryToConstantFold(const VPRecipeBase &R, unsigned Opcode,
995995
static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
996996
using namespace llvm::VPlanPatternMatch;
997997

998-
// Constant folding.
998+
// Simplification of live-in IR values for SingleDef recipes using
999+
// InstSimplifyFolder.
9991000
if (TypeSwitch<VPRecipeBase *, bool>(&R)
10001001
.Case<VPInstruction, VPWidenRecipe, VPWidenCastRecipe,
10011002
VPReplicateRecipe>([&](auto *I) {

0 commit comments

Comments
 (0)