[llvm] 321de07 - [DAGCombiner] Remove TRUNCATE_(S/U)SAT_(S/U) from an assert that isn't tested. NFC (#104466)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 08:42:59 PDT 2024
Author: Craig Topper
Date: 2024-08-16T08:42:55-07:00
New Revision: 321de07b778a16e88c589ab0af05ad10c906af13
URL: https://github.com/llvm/llvm-project/commit/321de07b778a16e88c589ab0af05ad10c906af13
DIFF: https://github.com/llvm/llvm-project/commit/321de07b778a16e88c589ab0af05ad10c906af13.diff
LOG: [DAGCombiner] Remove TRUNCATE_(S/U)SAT_(S/U) from an assert that isn't tested. NFC (#104466)
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index b21bea649e956b..e75db2950579f6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -13201,9 +13201,7 @@ SDValue DAGCombiner::matchVSelectOpSizesWithSetCC(SDNode *Cast) {
unsigned CastOpcode = Cast->getOpcode();
assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND ||
CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND ||
- CastOpcode == ISD::TRUNCATE_SSAT_S ||
- CastOpcode == ISD::TRUNCATE_SSAT_U ||
- CastOpcode == ISD::TRUNCATE_USAT_U || CastOpcode == ISD::FP_ROUND) &&
+ CastOpcode == ISD::FP_ROUND) &&
"Unexpected opcode for vector select narrowing/widening");
// We only do this transform before legal ops because the pattern may be
More information about the llvm-commits
mailing list