diff options
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp index 83c7d236bf7..35100b83a32 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp @@ -24,10 +24,10 @@ static cl::opt<bool> EnableHCFGVerifier("vplan-verify-hcfg", cl::init(false), cl::Hidden, cl::desc("Verify VPlan H-CFG.")); +#ifndef NDEBUG /// Utility function that checks whether \p VPBlockVec has duplicate /// VPBlockBases. -LLVM_ATTRIBUTE_USED static bool -hasDuplicates(const SmallVectorImpl<VPBlockBase *> &VPBlockVec) { +static bool hasDuplicates(const SmallVectorImpl<VPBlockBase *> &VPBlockVec) { SmallDenseSet<const VPBlockBase *, 8> VPBlockSet; for (const auto *Block : VPBlockVec) { if (VPBlockSet.count(Block)) @@ -36,6 +36,7 @@ hasDuplicates(const SmallVectorImpl<VPBlockBase *> &VPBlockVec) { } return false; } +#endif /// Helper function that verifies the CFG invariants of the VPBlockBases within /// \p Region. Checks in this function are generic for VPBlockBases. They are |