From 658839ced0f43dbd02ee2714070731cee9e2e68e Mon Sep 17 00:00:00 2001 From: Dean Sturtevant Date: Mon, 7 Jul 2025 13:36:53 -0400 Subject: [PATCH] Add #ifndef NDEBUG/#endif around debug-only code. --- llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 2a947f3297749..eee963f2473c4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -718,8 +718,10 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_ExpOp(SDNode *N) { : RTLIB::getLDEXP(N->getValueType(0)); assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpowi."); if (!TLI.getLibcallName(LC)) { +#ifndef NDEBUG RTLIB::Libcall NewLC = RTLIB::getPOW(N->getValueType(0)); assert(NewLC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpow type"); +#endif // Some targets don't have a powi libcall; use pow instead. // FIXME: Implement this if some target needs it.