Skip to content

Commit f1e7f7d

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

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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: 2 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");

0 commit comments

Comments
 (0)