Skip to content

Commit 29ed9cd

Browse files
committed
Remove NDEBUG gating around assertions
1 parent 8d1f95f commit 29ed9cd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,15 +2100,13 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
21002100
// Establish the correct scalable-vector types for any fixed-length type.
21012101
if (SubVecVT.isFixedLengthVector()) {
21022102
SubVecContainerVT = TLI.getContainerForFixedLengthVector(SubVecVT);
2103-
#ifndef NDEBUG
21042103
TypeSize VecRegSize = TypeSize::getScalable(RISCV::RVVBitsPerBlock);
21052104
[[maybe_unused]] bool ExactlyVecRegSized =
21062105
Subtarget->expandVScale(SubVecVT.getSizeInBits())
21072106
.isKnownMultipleOf(Subtarget->expandVScale(VecRegSize));
21082107
assert(isPowerOf2_64(Subtarget->expandVScale(SubVecVT.getSizeInBits())
21092108
.getKnownMinValue()));
21102109
assert(Idx == 0 && (ExactlyVecRegSized || V.isUndef()));
2111-
#endif
21122110
}
21132111
MVT ContainerVT = VT;
21142112
if (VT.isFixedLengthVector())

0 commit comments

Comments
 (0)