Skip to content

Commit c3ee9c7

Browse files
committed
Remove assert and redundant check
1 parent 9329a30 commit c3ee9c7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7395,9 +7395,6 @@ bool AArch64DAGToDAGISel::SelectAddrModeIndexedSVE(SDNode *Root, SDValue N,
73957395
} else
73967396
return false;
73977397

7398-
assert(MulImm != std::numeric_limits<int64_t>::max() &&
7399-
"Uninitialized MulImm.");
7400-
74017398
TypeSize TS = MemVT.getSizeInBits();
74027399
int64_t MemWidthBytes = static_cast<int64_t>(TS.getKnownMinValue()) / 8;
74037400

llvm/lib/Target/AArch64/AArch64Subtarget.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
410410
unsigned getSVEVectorSizeInBits() const {
411411
assert(isSVEorStreamingSVEAvailable() &&
412412
"Tried to get SVE vector length without SVE support!");
413-
if (MaxSVEVectorSizeInBits &&
414-
MinSVEVectorSizeInBits == MaxSVEVectorSizeInBits)
413+
if (MinSVEVectorSizeInBits == MaxSVEVectorSizeInBits)
415414
return MaxSVEVectorSizeInBits;
416415
return 0;
417416
}

0 commit comments

Comments
 (0)