Skip to content

Commit 321de07

Browse files
authored
[DAGCombiner] Remove TRUNCATE_(S/U)SAT_(S/U) from an assert that isn't tested. NFC (#104466)
1 parent d8c9d58 commit 321de07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13201,9 +13201,7 @@ SDValue DAGCombiner::matchVSelectOpSizesWithSetCC(SDNode *Cast) {
1320113201
unsigned CastOpcode = Cast->getOpcode();
1320213202
assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND ||
1320313203
CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND ||
13204-
CastOpcode == ISD::TRUNCATE_SSAT_S ||
13205-
CastOpcode == ISD::TRUNCATE_SSAT_U ||
13206-
CastOpcode == ISD::TRUNCATE_USAT_U || CastOpcode == ISD::FP_ROUND) &&
13204+
CastOpcode == ISD::FP_ROUND) &&
1320713205
"Unexpected opcode for vector select narrowing/widening");
1320813206

1320913207
// We only do this transform before legal ops because the pattern may be

0 commit comments

Comments
 (0)