Skip to content

Commit 02a8a9a

Browse files
committed
!fixup address comments, thanks!
1 parent 1a1172e commit 02a8a9a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,11 +966,10 @@ class VPIRMetadata {
966966
/// nodes that are common to both.
967967
void intersect(const VPIRMetadata &MD);
968968

969+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
969970
/// Print metadata with node IDs.
970971
void print(raw_ostream &O, const Module *M) const;
971-
972-
/// Return true if there is any metadata to print.
973-
bool empty() const { return Metadata.empty(); }
972+
#endif
974973
};
975974

976975
/// This is a concrete Recipe that models a single VPlan-level instruction.

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,7 @@ void VPIRMetadata::intersect(const VPIRMetadata &Other) {
16761676
Metadata = std::move(MetadataIntersection);
16771677
}
16781678

1679+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
16791680
void VPIRMetadata::print(raw_ostream &O, const Module *M) const {
16801681
if (Metadata.empty())
16811682
return;
@@ -1694,6 +1695,7 @@ void VPIRMetadata::print(raw_ostream &O, const Module *M) const {
16941695
});
16951696
O << ")";
16961697
}
1698+
#endif
16971699

16981700
void VPWidenCallRecipe::execute(VPTransformState &State) {
16991701
assert(State.VF.isVector() && "not widening");
@@ -4123,6 +4125,8 @@ void VPInterleaveRecipe::print(raw_ostream &O, const Twine &Indent,
41234125
}
41244126
++OpIdx;
41254127
}
4128+
4129+
VPIRMetadata::print(O, getParent()->getPlan()->getModule());
41264130
}
41274131
#endif
41284132

@@ -4267,6 +4271,8 @@ void VPInterleaveEVLRecipe::print(raw_ostream &O, const Twine &Indent,
42674271
}
42684272
++OpIdx;
42694273
}
4274+
4275+
VPIRMetadata::print(O, getParent()->getPlan()->getModule());
42704276
}
42714277
#endif
42724278

0 commit comments

Comments
 (0)