Skip to content

Commit 3320d55

Browse files
committed
Removed redundant assert check
1 parent e1b6fce commit 3320d55

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,6 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ATOMIC_STORE(AtomicSDNode *N) {
21742174
}
21752175

21762176
SDValue DAGTypeLegalizer::PromoteIntOp_BITCAST(SDNode *N) {
2177-
21782177
// Use the custom lowering.
21792178
if (const auto Res = LowerBitcast(N)) {
21802179
return Res;

llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,7 @@ static SDValue MaybeBitcast(SelectionDAG &DAG, SDLoc DL, EVT VT,
918918
}
919919

920920
SDValue DAGTypeLegalizer::LowerBitcast(SDNode *Node) const {
921-
assert(Node->getOpcode() == ISD::BITCAST ||
922-
Node->getOpcode() == ISD::FP_ROUND && "Unexpected opcode!");
921+
assert(Node->getOpcode() == ISD::BITCAST && "Unexpected opcode!");
923922
// Handle bitcasting from v2i8 without hitting the default promotion
924923
// strategy which goes through stack memory.
925924
EVT FromVT = Node->getOperand(0)->getValueType(0);

0 commit comments

Comments
 (0)