[llvm] [DAGCombiner] Remove TRUNCATE_(S/U)SAT_(S/U) from an assert that isn't tested. NFC (PR #104466)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 09:10:05 PDT 2024
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/104466
CC: @ParkHanbum
>From 10871cf0dace53c66d095dfd4ff4ef37d3fcfc22 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Thu, 15 Aug 2024 09:08:03 -0700
Subject: [PATCH] [DAGCombiner] Remove TRUNCATE_(S/U)SAT_(S/U) from an assert
that isn't tested. NFC
---
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 25644c24855a62..24ef00fc1ed191 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