Skip to content

Commit 2c115ca

Browse files
committed
!fixup extend comment, thanks
1 parent 5698517 commit 2c115ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3134,7 +3134,9 @@ bool VPReplicateRecipe::shouldPack() const {
31343134

31353135
/// Returns a SCEV expression for \p Ptr if it is a pointer computation for
31363136
/// which the legacy cost model computes a SCEV expression when computing the
3137-
/// address cost. Otherwise return nullptr.
3137+
/// address cost. Computing SCEVs for VPValues is incomplete and returns
3138+
/// SCEVCouldNotCompute in cases the legacy cost model can compute SCEVs. In
3139+
/// those cases we fall back to the legacy cost model. Otherwise return nullptr.
31383140
static const SCEV *getAddressAccessSCEV(const VPValue *Ptr, ScalarEvolution &SE,
31393141
const Loop *L) {
31403142
auto *PtrR = Ptr->getDefiningRecipe();

0 commit comments

Comments
 (0)